Difference between revisions of "Shell.run"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
Line 14: Line 14:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:API_Functions]]

Revision as of 18:38, 28 November 2012


Grid Redstone.png  Function shell.run
Runs the specified program with the specified arguments
Syntax shell.run(string program, string args)
Returns True/False
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Runs the program "myprogram" with arguments "test" and "ing"
Code
shell.run("myprogram", "test", "ing")
Output The program myprogram with the arguments "test" and "ing"