Trouble with popen2

P at draigBrady.com P at draigBrady.com
Wed Sep 29 08:02:35 EDT 2004


Rembrandt Q Einstein wrote:
> I am running an external command and I need to know a) when it is done 
> and b) what it wrote to both stdout and stderr.  After a little 
> searching, I found the popen2 module and used the Popen3 class.  I'm 
> having trouble with it hanging, though.

This should be a FAQ if it's not.
Have a go with: http://www.pixelbeat.org/libs/subProcess.py

Pádraig.



More information about the Python-list mailing list