Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ Crontab to Check Perl program

Posted by: Kilmarac Sep 21 2008, 01:32 PM

Greetings,

Unfortunately, I have yet to learn how to program a crontab script from the ground up. Im trying to figure out how to make a crontab script that will check to see if a Perl Program is running, and if not restart it.

I can see what needs to happen, just not how.

ps x | grep script.pl

If found END
If not found then run script.pl

Can anyone help me out?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)