You can also use the spawn functions in os, together with the P_WAIT
mode.
os.spawnlp(os.P_WAIT, 'ls', 'ls')
gconfd-martin kde-martin mcop-martin ssh-PhJzdB6333
gpg-bSRhOE ksocket-martin orbit-martin
0
os.spawnlp(os.P_WAIT, 'spam', 'spam')
127
--
http://mail.python.org/mailman/listi
There is a version of subprocess for 2.3.
http://www.lysator.liu.se/~astrand/popen5/
http://effbot.org/downloads/#subprocess
On Tue, Aug 02, 2005 at 10:05:00AM -0700, chuck wrote:
> I need to execute a command shell process obtain the return code and
> capture stdout from that shell process. I'v
I need to execute a command shell process obtain the return code and
capture stdout from that shell process. I've done this with 2.4 using
subprocess. How do I do it with 2.3?
--
http://mail.python.org/mailman/listinfo/python-list