What's a good tool to use to monitor if a particular process is running, and
then restart it if it dies?

Preferably a perl or a shell script as I don't have compilers on the box I
need to use it on, and I want to stay far far away from DJB's daemontools.

Jay