Module os
Operating-system facilities.
The os module is the built-in os Lua module extended with the functions listed here.
Functions
getpid() | Returns the process ID. |
hostname() | Returns the current host name. |
kill(pid[, signal]) | Sends a signal to a process. |
Functions
- getpid()
- Returns the process ID.
- hostname()
-
Returns the current host name.
Returns an empty string if the host name cannot be determined.
- kill(pid[, signal])
-
Sends a signal to a process.
An interface to kill(2).
signal is either an integer or a signal name (such as “SIGKILL”, “SIGSTOP”, etc.). If missing, defaults to “SIGTERM”. If zero, the function checks for the existence of process
pid
.Returns:
true on success.