Difference between revisions of "Shell.run"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
Smiley43210 (Talk | contribs) m (Changed to use type template, italicized args in context) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=shell.run | |name=shell.run | ||
− | |args= | + | |args= {{type|string}} program [, {{type|string}} args] |
− | |returns= | + | |returns={{type|boolean}} success |
|api=shell | |api=shell | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Runs | + | |desc=Runs ''program'' with optional specified arguments |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 01:19, 5 May 2013
Function shell.run | |
Runs program with optional specified arguments | |
Syntax | shell.run(string program [, string args]) |
Returns | boolean success |
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" |