"dcrespo" <[EMAIL PROTECTED]> writes: > Main application starts > This one starts the App Monitor of itself. (This means that if Main > Application closes, the App Monitor restart it) > > And viceversa means that if App Monitor closes, the Main application > restart it. > > How can I accomplish this? > > I've been thinking in wx.SingleInstanceChecker (from wxPython GUI > library). If it doesn't exist, then call os.system(<program_name>). But > I don't know if there's a better way.
"Better" depends on what your requirements are. Personally, I use init as an app monitor. It doesn't need monitoring - if it's dead, your Unix has a lot worse problems than one application being down. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list