[python-win32] run external program but with timeout

Justin Ezequiel justin.mailinglists at gmail.com
Wed Jun 15 12:43:28 CEST 2005


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.

More information about the Python-win32 mailing list