Re: [python-win32] run external program but with timeout

2005-06-15 Thread Justin Ezequiel
On 6/15/05, Justin Ezequiel <[EMAIL PROTECTED]> wrote:
> 
> I want to run an executable but I need to be able to kill it if
> it has not completed after 5 or so minutes.
> 

Forgive me. Just now found a Demos folder and a winprocess.py file
that at first glance will be exactly what I need.
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] run external program but with timeout

2005-06-15 Thread Justin Ezequiel
Greetings,

I want to run an executable but I need to be able to kill it if 
it has not completed after 5 or so minutes.

Googling gets me signal.signal(signal.SIGALRM, handler)
but I need to use this from Windows.

I have Python 2.3.4 on WinXP Pro.

Had a look at the Python for Windows Documentation and it 
seems that I can use the win32process module.

I will have a go at this but if anybody has done this before 
and would be willing to share, please do.

Thank you.
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32