type
constructors
make |
Construct a Process instance used to launch an external OS process with the specified command arguments. |
---|
fields
command |
Command argument list used to launch process. |
---|---|
dir |
Working directory of process. |
err |
The output stream used to sink the process stderr. |
in |
The input stream used to source the process stdin. |
mergeErr |
If true, then stderr is redirected to the output stream configured via the |
out |
The output stream used to sink the process stdout. |
methods
env |
Environment variables to pass to new process as a mutable map of string key/value pairs. |
---|---|
join |
Wait for this process to exit and return the exit code. |
kill |
Kill this process. |
run |
Spawn this process. |
Slot Details
command
dir
env
err
src
OutStream? err := Env.cur().err
The output stream used to sink the process stderr. Default is to send to Env.err
. If set to null, then output is silently consumed like /dev/null. Note this field is ignored if mergeErr
is set true, in which case stderr goes to the stream configured via out
.
in
join
kill
make
mergeErr
out
src
OutStream? out := Env.cur().out
The output stream used to sink the process stdout. Default is to send to Env.out
. If set to null, then output is silently consumed like /dev/null.