This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LeviM's profile picture

Multiple Programs In Parallel From Drives

Started by LeviM, 26 January 2015 - 07:57 PM
LeviM #1
Posted 26 January 2015 - 08:57 PM
Hello, I am creating a program (called 'Cortana') and it will run multiple programs at the same time. These programs are stored in multiple floppy disks. These floppy disks are stored in disk drives that all all on open, wired modems. The code linked below will get the directories and names of these programs (or 'cores'). The disks have two compulsary files to be added to this program. It must have a 'core' file and a 'conf' file. The 'conf' file will have a name function that will return the name of the core.

Files

I want to know if there is a way of running programs in parallel instead of functions.
Edited on 26 January 2015 - 08:06 PM
KingofGamesYami #2
Posted 26 January 2015 - 11:02 PM
Make the programs into functions.
Lyqyd #3
Posted 27 January 2015 - 12:58 AM
The usual way to change a program to a function is with shell.run, though:


function() shell.run("myProgram") end
LeviM #4
Posted 27 January 2015 - 08:12 PM
Thanks so much! It worked perfectly!