os

Functions for operating system interfaces.

Summary
osFunctions for operating system interfaces.
Exceptions
OsExceptionError from os module.
OsException.InvalidProcessInvalid process.
OsException.PathNotFoundPath not found during chdir.
OsException.SpawnError occurred spawning new process.
Enumerations
PlatformPlatform type.
Types
ProcessOpaque type representing a process.
Functions
chdirChange the current process working directory to the given path.
getcwdReturn the working directory of the current process.
getenvReturn the value of an environment variable in the current process.
platformReturn the running platform type.
systemExecute a system (shell) command.
killKill a process.
spawnCreate a new process with the given command line.
waitWait for a process to terminate.

Exceptions

OsException

Error from os module.

OsException.InvalidProcess

Invalid process.

OsException.PathNotFound

Path not found during chdir.

OsException.Spawn

Error occurred spawning new process.

Enumerations

Platform

Platform type.

Values

posixposix
win32win32

Types

Process

Opaque type representing a process.

Functions

chdir

DECLARE NATIVE FUNCTION chdir(path: String)

Change the current process working directory to the given path.

getcwd

DECLARE NATIVE FUNCTION getcwd(): String

Return the working directory of the current process.

getenv

DECLARE NATIVE FUNCTION getenv(name: String): String

Return the value of an environment variable in the current process.

platform

DECLARE NATIVE FUNCTION platform(): Platform

Return the running platform type.

system

DECLARE NATIVE FUNCTION system(command: String): Number

Execute a system (shell) command.

kill

DECLARE NATIVE FUNCTION kill(process: Process)

Kill a process.

spawn

DECLARE NATIVE FUNCTION spawn(command: String): Process

Create a new process with the given command line.

wait

DECLARE NATIVE FUNCTION wait(process: Process): Number

Wait for a process to terminate.

DECLARE NATIVE FUNCTION chdir(path: String)
Change the current process working directory to the given path.
DECLARE NATIVE FUNCTION getcwd(): String
Return the working directory of the current process.
DECLARE NATIVE FUNCTION getenv(name: String): String
Return the value of an environment variable in the current process.
DECLARE NATIVE FUNCTION platform(): Platform
Return the running platform type.
DECLARE NATIVE FUNCTION system(command: String): Number
Execute a system (shell) command.
DECLARE NATIVE FUNCTION kill(process: Process)
Kill a process.
DECLARE NATIVE FUNCTION spawn(command: String): Process
Create a new process with the given command line.
DECLARE NATIVE FUNCTION wait(process: Process): Number
Wait for a process to terminate.
Close