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

Methods

lua-repl.lib.os:sleep (seconds)
Sleep for a given number of seconds.

Parameters:

  • seconds number Number of seconds

Returns:

    None

Usage:

    os:sleep(2.5)
generated by LDoc 1.4.6 Last updated 1980-01-01 00:00:00