Spawn a process and return its output as a deferred returning a bytes.

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 process; 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 true, include stderr in the result. If false, if stderr is received the returned Deferred will errback with an IOError instance with a processEnded attribute. The processEnded attribute refers to a Deferred which fires when the executed process ends.
API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.