[Twisted-Python] How to ... in Conch?

Paul Swartz paulswartz at gmail.com
Sun Sep 9 10:12:20 EDT 2007

On 9/9/07, Konrads Smelkovs <konrads.smelkovs at gmail.com> wrote:
> I seem to have figured it out. Attached is a module with function
> executeCommand that executes a single command, gathers input, output and
> error code and returns it.
> Comment at will.

A couple comments:
 * extReceived() should probably check that the data type is correct
(connection.EXTENDED_DATA_STDERR) and append the extended data rather
than overwriting the previous data.
 * closed() should check that self.exitcode is present.  Like I
mentioned earlier, if the process ends with a signal, the server will
send exit-signal.

Paul Swartz
paulswartz at gmail dot com
AIM: z3penguin

More information about the Twisted-Python mailing list