newbie script

Gerhard Häring gh at
Wed Sep 24 15:26:53 CEST 2003

ataraxia2500 wrote:
> I wanna do a script that launch a programm xyz and relaunch xyz if it
> crashes. what kind of module do I need for such a task?

Something like this:

import os
while 1:

os.system executes a program and waits, until the program is terminated. 
But there's no way to know wether the program was terminated 
deliberately or wether it crashed.

-- Gerhard

More information about the Python-list mailing list