Type Function Library os.* Return value Number Revision Current Public Release (2018.3326) Keywords os, execute, shell, commands See also os.exit()
Passes a string to the operating system for execution and returns a system-dependent status code. This function is equivalent to the C function
This function returns a number representing the status code with the system-dependent results of the command.
This function does not work on devices.
os.execute( cmd )
String. String specifying a command to be executed by an operating system shell. The function of this command depends on what is allowed by the running OS. If
cmd is not specified, the return value is
os.execute( "ls" )