http://qs321.pair.com?node_id=113001


in reply to External monitoring of a Perl program

So long as you can make the programs not fork into the background you can use a simple wrapper like
#!/bin/sh while true do /path/to/program done
or if a perl solution is required
#!/usr/bin/perl while(1) { system('/path/to/program'); }