sys.sys.task
Declaration
lua
sys.task(cmd [, timeout])
Description
Execute shell command.
Parameters
`cmd` (string) — shell command
`timeout` (number, optional) — timeout in seconds
Return Values
`string` — command output
`number` — exit code
Example
lua
local out, code = sys.task("ls /var/mobile")
sys.log(out)