twisted.internet.utilsView Source (View In Hierarchy)
Trivial protocol for communicating with a process and turning its output
into the result of a
|Method||outReceived||Some data was received from stdout.|
|Method||processEnded||Called when the child process exits and all file descriptors associated with it have been closed.|
Inherited from ProcessProtocol:
|Method||childDataReceived||Called when data arrives from the child process.|
|Method||errReceived||Some data was received from stderr.|
|Method||childConnectionLost||Called when a file descriptor associated with the child process is closed.|
|Method||inConnectionLost||This will be called when stdin is closed.|
|Method||outConnectionLost||This will be called when stdout is closed.|
|Method||errConnectionLost||This will be called when stderr is closed.|
|Method||processExited||This will be called when the subprocess exits.|
|Method||makeConnection||Make a connection to a transport and a server.|
|Method||connectionMade||Called when a connection is made.|
errortoois false and bytes are received over stderr, this attribute will refer to a
Deferredwhich will be called back when the process ends. This
Deferredis also associated with the
deferredfires with earlier in this case so that users can determine when the process has actually ended, in addition to knowing when bytes have been received via stderr.
Some data was received from stdout.
Called when the child process exits and all file descriptors associated with it have been closed.