ExternalProcess

runs external process, catches output, allows to stop

class ExternalProcess {
char[][] _args;
char[] _workDir;
char[] _program;
string[string] _env;
TextWriter _stdout;
TextWriter _stderr;
BackgroundReader _stdoutReader;
BackgroundReader _stderrReader;
ProcessPipes _pipes;
ExternalProcessState _state;
int _result;
}

Members

Functions

kill
ExternalProcessState kill()

request process stop

poll
ExternalProcessState poll()

polls all available output from process streams

wait
ExternalProcessState wait()

waits until termination

Properties

result
int result [@property getter]

returns process result for stopped process

Meta