relaunch app when it ends or when it prints out certain text (stdout)

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2009-10-25T01:28:31Z Indexed on 2010/03/28 12:03 UTC
Read the original article Hit count: 170

Filed under:
|

I have an app which acts almost like a daemon. Sometimes it quits on error and many times it prints an error msg then ask users to press any key to close.

How can i relaunch the app when either case happens? I am more interested in the 2nd case. I can do this in c++, C# or python. The script is an old python that i dont want to change (a newer c# version is in the works but not stable)

© Stack Overflow or respective owner

Related posts about win32

Related posts about desktop-application