Difference between revisions of "Shell.run"

From ComputerCraft Wiki
Jump to: navigation, search
(Updated to use standard Function template)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
|name=term.write
+
|name=shell.run
 
|args= [[string (type)|(string)]] program, [[string (type)|(string)]] args
 
|args= [[string (type)|(string)]] program, [[string (type)|(string)]] args
|returns=nil
+
<!-- |returns=[[Nil|nil]] -->
 
|api=shell
 
|api=shell
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 02:32, 24 September 2012


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

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"