On 2006-03-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi
> thanks for the reply.

Please properly quote the article to which you're replying so
that we can tell who/what your talking to/about.

> Actually, i should clarify what i am doing. the program's
> output will be displayed to a web browser using cgi, so there
> is no keyboard interrupt. The backend cgi script (python
> script) will have to send Ctrl-C to break the program. 

Actually, you don't want to send a Ctrl-C to the program. You
want to send a SIGINT signal to the process.  That's what the
tty line-discipline layer in the tty driver sends to processes
attached to a tty when the tty receives the interrupt character
(which defaults to Ctrl-C).

Sending signals to processes is done using os.kill()

  http://docs.python.org/lib/os-process.html

-- 
Grant Edwards                   grante             Yow!  How do I get HOME?
                                  at               
                               visi.com            
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to