Proc manages spawning an external OS process. This class differs from sys::Process by optimizing the API for interaction with the child process over stdio.
const Str cmd
Command argument list used to launch process. The first item is the executable itself, then rest are the parameters.
const File? dir := null
Working directory for child process.
Environment variables to pass to child process. This map is initialized with the current process environment.
Return InStream used to read process stderr.
Return the exit code for child process,
nullif process has not started, or throws Err if process has not yet terminated.
Return InStream used to read process stdout.
trueif child process is currently running or
falseif not started or terminated.
Kill the child process. Use waitFor to block until the process has terminated.
new make(|This f)
Check the exit code the process returned. If the code was
0return this. If the code was non-zero throws an IOErr. If the process is still running, the same semantics apply as exitCode.
Return OutStream used to write to process stdin.
const Bool redirectErr := false
true, then stderr is redirected to stdout.
Block the current thread until the child process has terminated. Use exitCode to retreive exit code.