Difference between revisions of "Shell.run"
From ComputerCraft Wiki
Line 3: | Line 3: | ||
|name=shell.run | |name=shell.run | ||
|args= [[string (type)|string]] program, [[string (type)|string]] args | |args= [[string (type)|string]] program, [[string (type)|string]] args | ||
− | + | |returns=True/False | |
|api=shell | |api=shell | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 03:09, 9 October 2012
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
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" |