sending signals to child process

Sarir Khamsi sarir.khamsi at raytheon.com
Fri Apr 8 19:11:41 EDT 2005


"Diez B. Roggisch" <deetsNOSPAM at web.de> writes:

> 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.

This is what I was looking for...thanks.

Sarir



More information about the Python-list mailing list