shell.run

From ComputerCraft Wiki
Revision as of 01:19, 5 May 2013 by Smiley43210 (Talk | contribs) (Changed to use type template, italicized args in context)

Jump to: navigation, search


Grid Redstone.png  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

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"