W Wrapl, The Programming Language

Libraries IO.Process

Types

T

Inherits from:

PipeMessageT

Inherits from:

ForkMessageT

Inherits from:

WaitMessageT

Inherits from:

Constants

Message : Sys.Module.T

Functions

Open(prog @ Std.String.T, args...) : T

Spawns a new process prog args and returns a handle to it. args should either be

a) a list or arguments (including the name of exectuable as the first argument)

b) any number of strings arguments (in which case the name of the executable is taken from prog

The returned handle is a IO.Socket.T, connecting to the input and output of the spawned process.

Result() : Std.Integer.T

Returns the exit status of the process referred to by proc if it has finished executing. Fails otherwise.

Signal()

Wait() : Std.Integer.T

Returns the exit status of the process referred to by proc, waiting if necessary for the process to finish. executing. Fails otherwise.

Methods

:result(proc @ T) : Std.Integer.T

Returns the exit status of the process referred to by proc if it has finished executing. Fails otherwise.

:signal(_ @ T, _ @ Std.Integer.SmallT)

:wait(proc @ T) : Std.Integer.T

Returns the exit status of the process referred to by proc, waiting if necessary for the process to finish. executing. Fails otherwise.