Class for handling processes.
|
NEW(cmd) @public | Create a Process to run cmd without arguments
|
|
NEW(cmd, arglist) @public | Create a Process to run cmd with arguments arglist.
Otherwise just like NEW(cmd).
|
|
$setIO(flags)
SYS.Process @public | Specify what IO of the process will be used.
|
|
$start()
SYS.Process @public | Start the process.
|
|
$didStart()
bool @public | Return TRUE if start() has been called.
|
|
$isRunning()
bool @public | Check if the process is running.
|
|
$didExitNormally()
bool @public | Return TRUE only if the process was executed and exited normally.
|
|
$getExitValue()
int @public | Get the exit value of the process.
|
|
$wait()
status @public | Wait until the process has exited.
|
|
$wait(timeout)
status @public | Wait until the process has exited up to timeout usec.
|
|
$abort()
SYS.Process @public | Abort the process. Tries to make the process exit cleanly by sending
it Signal.int. If that doesn't work then it is killed with Signal.kill
signal.
|
|
$setAbortTimeout(timeout)
SYS.Process @public | Set the time for abort() to wait for a clean exit to timeout usec.
|
|
$interrupt()
SYS.Process @public | Interrupt the process.
|
|
$kill()
SYS.Process @public | Abort the process.
|
|
$signal(sig)
SYS.Process @public | Send signal sig to the process.
|
|
$readFrom(fname)
SYS.Process @public | Set the file to be used for stdin of the process to fname.
|
|
$writeTo(fname)
SYS.Process @public | Set the file to be used for stdout of the process to fname.
|
|
$writeErrorsTo(fname)
SYS.Process @public | Set the file to be used for stderr of the process to fname.
|
|
$writeErrorsToOut(yes)
SYS.Process @public | Set wether stderr of the process is written to the same file as
specified with writeTo().
|
|
$read()
string @public | Read all of stdout from the process.
|
|
$read(timeout)
string @public | Read all of stdout from the process.
|
|
$write()
SYS.Process @public | Write to stdin of the process.
|
|
$write(timeout)
SYS.Process @public | Write to stdin of the process.
|
|