t.i.u.getProcessOutput(executable, args=(), env={}, path='.', reactor=None, errortoo=0) : function documentation

Part of twisted.internet.utils View Source

Spawn a process and return its output as a deferred returning a string.
ParametersexecutableThe file name to run and get the output of - the full path should be used.
argsthe command line arguments to pass to the process; a sequence of strings. The first string should *NOT* be the executable's name.
envthe environment variables to pass to the processs; a dictionary of strings.
paththe path to run the subprocess in - defaults to the current directory.
reactorthe reactor to use - defaults to the default reactor
errortooif 1, capture stderr too
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.