I have a perl script that needs to run 24 hrs a day. Occasionally it fails and stops (something I'm looking into at the moment - probably involving broken pipes), what is the best way to monitor the process to ensure that it is running and if not restarting it?