Functions for operating system interfaces.
os | Functions for operating system interfaces. |
Exceptions | |
OsException | Error from os module. |
OsException. | Invalid process. |
OsException. | Path not found during chdir. |
OsException. | Error occurred spawning new process. |
Enumerations | |
Platform | Platform type. |
Types | |
Process | Opaque type representing a process. |
Functions | |
chdir | Change the current process working directory to the given path. |
getcwd | Return the working directory of the current process. |
getenv | Return the value of an environment variable in the current process. |
platform | Return the running platform type. |
system | Execute a system (shell) command. |
kill | Kill a process. |
spawn | Create a new process with the given command line. |
wait | Wait for a process to terminate. |
Change the current process working directory to the given path.
DECLARE NATIVE FUNCTION chdir( path: String )
Return the working directory of the current process.
DECLARE NATIVE FUNCTION getcwd(): String
Return the value of an environment variable in the current process.
DECLARE NATIVE FUNCTION getenv( name: String ): String
Return the running platform type.
DECLARE NATIVE FUNCTION platform(): Platform
Execute a system (shell) command.
DECLARE NATIVE FUNCTION system( command: String ): Number
Kill a process.
DECLARE NATIVE FUNCTION kill( process: Process )
Create a new process with the given command line.
DECLARE NATIVE FUNCTION spawn( command: String ): Process
Wait for a process to terminate.
DECLARE NATIVE FUNCTION wait( process: Process ): Number