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

Running a program inside a program?

Started by Rwkeith, 03 September 2012 - 04:37 PM
Rwkeith #1
Posted 03 September 2012 - 06:37 PM
Hi, I'm trying to run a program using os.run or shell.run and I have no luck. I'm trying to create a program that will automatically run "gps host x,y,z". But it will only run gps, and not 'gps host'. There's no api for this so im stuck with running it. Can anyone mind telling me what I'm doing wrong?
ardera #2
Posted 03 September 2012 - 06:40 PM
the usage is the following:

shell.run("programname", "param1", "param2", "param3", "param4") --and so on...
Rwkeith #3
Posted 03 September 2012 - 06:47 PM
the usage is the following:

shell.run("programname", "param1", "param2", "param3", "param4") --and so on...
Thanks, I figured out my problem.


shell.run("gps","host",10,20,30)