how to start a process and get it's pid?

Yves Glodt y.glodt at sitasoftware.lu
Fri Nov 11 03:55:47 EST 2005


Hello,

another question rose for me today...

Is there a way to start an external process, in it's own context (not as 
the exec-() functions do), and get it's pid...?

e.g.:

pid = wonderfulstartprocfunction('/usr/bin/wine bla.exe')
#... later

if (...):
	os.kill(pid,9)


best regards,
Yves



More information about the Python-list mailing list