Difference between revisions of "Shell.run"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
m (Changed to use type template, italicized args in context)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=shell.run
 
|name=shell.run
|args= [[string (type)|string]] program, [[string (type)|string]] args
+
|args= {{type|string}} program [, {{type|string}} args]
|returns=True/False
+
|returns={{type|boolean}} success
 
|api=shell
 
|api=shell
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Runs the specified program with the specified arguments
+
|desc=Runs ''program'' with optional specified arguments
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 01:19, 5 May 2013


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"