commands.exec

Execute a Command and wait until the command is finished.

ExampleExecute a Command
Execute a Command
Code
<nowiki>
commands.exec("kill @p")
  </nowiki>

commands.exec
Function
Syntax
commands.exec(
  • command : string
)

Returns boolean sucess table output
API commands
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.