I am in the process of creating a Python program (lets call it Program1), which will terminate randomly. I need another program to check if Program1 has been terminated, and if so, to restart it after a given amount of time. Should I use another Python program to do this, or is there a way this can be done in Windows e.g. similar to a cron job?
From what I understand, you can use sys.exit(), exit() and quit() to kill a Python program, but do all of these also kill all other running Python programs?
Thanks