Difference between revisions of "Shell.run"
From ComputerCraft Wiki
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=shell.run | |name=shell.run | ||
− | |args= [[string (type)| | + | |args= [[string (type)|string]] program, [[string (type)|string]] args |
<!-- |returns=[[Nil|nil]] --> | <!-- |returns=[[Nil|nil]] --> | ||
|api=shell | |api=shell |
Revision as of 02:32, 24 September 2012
Function shell.run | |
Runs the specified program with the specified arguments | |
Syntax | shell.run(string program, string args) |
Returns | nil |
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" |