[Tutor] Controlling a process and then killing it

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sun Oct 24 01:36:49 CEST 2004



On Sat, 23 Oct 2004, [ISO-8859-1] Hugo Gonz=E1lez Monteverde wrote:

> Is there any way to get the process id of something you run using
> popen*???

Hi Hugo,

Yes, you can use the 'popen2' module with its enhanced versions of popen.
It contains several popen variants, and these remember their pids:

    http://www.python.org/doc/lib/popen3-objects.html


Good luck to you!



More information about the Tutor mailing list