spawnProcess (
self,
processProtocol,
executable,
args=(),
env={},
path=None,
uid=None,
gid=None,
)
Spawn a process, with a process protcol.
Arguments:
processProtocol: a ProcessProtocol instance
executable: the file name to spawn - the full path should be used.
args: the command line arguments to pass to the process; a sequence
of strings. The first string should be the executable's name.
env: the environment variables to pass to the processs; a
dictionary of strings.
path: the path to run the subprocess in - defaults to the current directory.
uid: user ID to run the subprocess as.
gid: group ID to run the subprocess as.
See also:
twisted.protocols.protocol.ProcessProtocol
|