sending signals to child process
Diez B. Roggisch
deetsNOSPAM at web.de
Fri Apr 8 15:09:53 EDT 2005
Sarir Khamsi wrote:
> I would like to start a child process (like w/ popen3(), or some such)
> and then be able to interrupt it by sending it a control-c. How do I
> do that in Python? Is there a better way to gracefully halt a child
Use os.kill and the signal module.
> process? Is there a more cross-platform way to start a child process
> (popen() is only on UNIX/Win32)? Thanks.
In python2.4 there is the subprocess module.
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list