By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,523 Members | 1,737 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,523 IT Pros & Developers. It's quick & easy.

sending signals to child process

P: n/a
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
process? Is there a more cross-platform way to start a child process
(popen() is only on UNIX/Win32)? Thanks.

Sarir
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Jul 18 '05 #2

P: n/a
"Diez B. Roggisch" <de*********@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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.