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

Execute with arguments

Started by Ch1ck3nL1v3r, 23 February 2015 - 04:44 PM
Ch1ck3nL1v3r #1
Posted 23 February 2015 - 05:44 PM
I am struggling to execute a program (using shell.run()) in computercraft 1.3. The program is sent a string via rednet eg. "program arg1 arg2" and then executes it. When I include arguments in my input it does not see that the program exists. Is there a way I can split the string into shell.run("program", "arg1", "arg2")?

thanks in advance for any help! :)/>
Ch1ck3nL1v3r #2
Posted 23 February 2015 - 06:22 PM
I am struggling to execute a program (using shell.run()) in computercraft 1.3. The program is sent a string via rednet eg. "program arg1 arg2" and then executes it. When I include arguments in my input it does not see that the program exists. Is there a way I can split the string into shell.run("program", "arg1", "arg2")?

thanks in advance for any help! :)/>

I have found a way around this problem, for anyone who needs a fix in the future there is a soloution here http://www.computerc...-computercraft/
Edited on 23 February 2015 - 05:22 PM