shell.run

Runs a command in the computer's or turtle's shell.

ExampleExecute a command in the shell
Opens the lua interface
Code
<nowiki>shell.run("lua")</nowiki>
Output
(Lua program is now running.)

shell.run
Function
Syntax
shell.run(
  • command... : string
)

Returns boolean success
API shell
Source CC:Tweaked

,

ExampleExecute a splitted command in the shell
Lists all files/directories in /rom
Code
<nowiki>shell.run("list", "/rom")</nowiki>
Output
All files/directories in /rom
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.