subprocess call is not waiting.

andrea crotti andrea.crotti.0 at gmail.com
Tue Sep 18 09:54:41 EDT 2012


I have a similar problem, something which I've never quite understood
about subprocess...
Suppose I do this:

proc = subprocess.Popen(['ls', '-lR'], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

now I created a process, which has a PID, but it's not running apparently...
It only seems to run when I actually do the wait.

I don't want to make it waiting, so an easy solution is just to use a
thread, but is there a way with subprocess?



More information about the Python-list mailing list