Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Crontab to Check Perl program
Kilmarac
post Sep 21 2008, 01:32 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 21-September 08
Member No.: 13,676



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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th December 2017 - 06:46 PM