On Feb 29, 2012, at 5:16 PM, Kevin McIntyre wrote:

> Newbie question:
> 
> I'm calling addProcess and everything works well, but I'm trying to 
> understand how to capture/handle stderr stdout for that spawned process.
> 

Look into subclassing ProcessMonitor and override startProcess to provide your 
own ProcessProtocol. The default implementation uses a LoggingProtocol which 
just logs stdout from the process.

The process howto should get you up to speed on what you can override in your 
ProcessProtocol (esp. outReceived() and errReceived())
http://twistedmatrix.com/documents/current/core/howto/process.html
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to