ExternalProcess

runs external process, catches output, allows to stop

Constructors

this
this()
Undocumented in source.

Members

Functions

kill
ExternalProcessState kill()

request process stop

poll
ExternalProcessState poll()

polls all available output from process streams

run
ExternalProcessState run(string program, string[] args, string dir, TextWriter stdoutTarget, TextWriter stderrTarget)
Undocumented in source. Be warned that the author may not have intended to support it.
run
ExternalProcessState run(char[] program, char[][] args, char[] dir, TextWriter stdoutTarget, TextWriter stderrTarget)
Undocumented in source. Be warned that the author may not have intended to support it.
wait
ExternalProcessState wait()

waits until termination

waitForReadingCompletion
void waitForReadingCompletion()
Undocumented in source. Be warned that the author may not have intended to support it.
write
bool write(string data)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

result
int result [@property getter]

returns process result for stopped process

state
ExternalProcessState state [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_args
char[][] _args;
Undocumented in source.
_env
string[string] _env;
Undocumented in source.
_pipes
ProcessPipes _pipes;
Undocumented in source.
_program
char[] _program;
Undocumented in source.
_result
int _result;
Undocumented in source.
_state
ExternalProcessState _state;
Undocumented in source.
_stderr
TextWriter _stderr;
Undocumented in source.
_stderrReader
BackgroundReader _stderrReader;
Undocumented in source.
_stdout
TextWriter _stdout;
Undocumented in source.
_stdoutReader
BackgroundReader _stdoutReader;
Undocumented in source.
_workDir
char[] _workDir;
Undocumented in source.

Meta