Developer_release_1.4.0
Class lua-repl.lib.os
Operating system access.
Functions
lua-repl.lib.os.capture (cmd, raw) | Run OS command and capture output. |
Methods
lua-repl.lib.os:sleep (seconds) | Sleep for a given number of seconds. |
Functions
Methods- lua-repl.lib.os.capture (cmd, raw)
-
Run OS command and capture output.
Parameters:
- cmd string Command to run
- raw boolean Don't trim the output before return if true
Returns:
-
string
Output captured from stdout
Or
-
string
Output captured from stdout with trimmed whitespaces