Sunlis
03-23-2010, 07:50 PM
I have a Perl script for an XMLSocket server, and I use 'nohup' in SSH so that I don't have to stay connected for the server to be running. What I'm wondering is this: Is there a simple shell script or something that I can run every... 10 or 20 minutes with a cron job that will check to see if server.pl is running, and either start it up, or do nothing?
I'd be shocked if it wasn't out there somewhere, but I just can't come up with the right combination of search terms to find it. (I don't know much about shell script, or perl for that matter)
Thanks!
I'd be shocked if it wasn't out there somewhere, but I just can't come up with the right combination of search terms to find it. (I don't know much about shell script, or perl for that matter)
Thanks!