build flow? SCons? AAP? process creation?

Dennis Benzinger Dennis.Benzinger at gmx.net
Wed Apr 13 15:59:04 EDT 2005


corey.coughlin at comcast.net schrieb:
> [...]
> So if I do wind up having to write this thing myself, I've been
> checking the docs on process creation, and have a couple questions if
> anyone can fill me in.  It looks like the os.spawn* commands can start
> nonblocking sub-processes, but there doesn't seem to be a way to get
> stdout and stderr.  On the other hand, the popen commands make it easy
> to trap stdout and stderr, but I guess I'd have to do the thread setup
> and spawning myself.  Is there another alternative that I'm missing
> here?  
> [...]

Yes, you are missing the subprocess module which was introduced in 
Python 2.4: http://docs.python.org/lib/module-subprocess.html

Bye,
Dennis



More information about the Python-list mailing list