Difference between revisions of "Shell.run"
From ComputerCraft Wiki
(Updated to use standard Function template) |
|||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | {{Function | ||
+ | |name=term.write | ||
+ | |args= [[string (type)|(string)]] program, [[string (type)|(string)]] args | ||
+ | |returns=nil | ||
+ | |api=shell | ||
+ | |addon=ComputerCraft | ||
+ | |desc=Runs the specified program with the specified arguments | ||
+ | |examples= | ||
{{Example | {{Example | ||
− | |desc= | + | |desc=Runs the program "myprogram" with arguments "test" and "ing" |
− | |code=shell.run("myprogram", "test") | + | |code=shell.run("myprogram", "test", "ing") |
− | |output= | + | |output=The program myprogram with the arguments "test" and "ing" |
+ | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 02:30, 24 September 2012
Function term.write | |
Runs the specified program with the specified arguments | |
Syntax | term.write((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" |