Posix module
This module contains additional system interaction functions to those in the System module that are only available on POSIX-compatible systems.
Data types
- Posix::Resource - Resource limits
Exceptions
- InvalidFileMode - Invalid file mode
- NoSuchResource - No such resource
- NonZeroExit - Non-zero exit code
- OutOfMemory - Out of memory
- OverResourceLimit - Over resource limit
- SetPGidFailed - Failed to set process group
Functions
- String call(String cmd) - Get the output of an external program
- Int fork() - Fork a new process.
- Int getEGid() - Get effective group ID
- Int getEUid() - Get effective user ID
- Int getGid() - Get real group ID
- Int getPid() - Get the process ID.
- Int getUid() - Get real user ID
- Void pclose(File stream) - Close a pipe
- File popen(String cmd,FileMode mode) - Open a pipe to a command.
- Void reap() - Clean up dead child processes.
- Void setPGid(Int pid,Int pgid) - Set a process group ID
- Void setRLimit(Resource res,Int soft,Int hard=-1) - Set a resource limit.
- Void system(String cmd) - Run an external program
- Int wait() - Wait for a child to terminate.
- Int waitPid(Int pid) - Wait for a specific child to terminate.