Proccess termination

George Yoshida ml at dynkin.com
Fri Jan 28 21:18:28 CET 2005


alexrait1 wrote:
> I use popen.popen2 or popen.popen3 to start a new process and read from
> it's stdout/ write to it's stdin.
> But I need a way to know when a process terminates.

> Do you know about a library that provides these tools other then the
> standard os module... or should I use it otherwise?

popen2.Popen3, popen2.Popen4 and subprosess.Popen have poll/wait methods.

These will do what you're looking for.

--
George



More information about the Python-list mailing list