Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crontab setup

Status
Not open for further replies.

new2unix

Programmer
Feb 5, 2001
143
US
Hi,

I have the following line in my crontab:

0,5,10,15,20,25,30,35,40,45,50,55 2-23 * * * /usr/testgate/scripts/myscript.sh

Basically, I want to run this script every 5 minutes between 2 am to 11 pm everyday. But I am not sure if the job gets executed at all because I am not seeing the same result compared to when I manually executed the scripts. Did I set up the crontab incorrectly?

I did a ps -ef | grep cron and saw the following:

root 11652 1 0 Aug 15 - 3:46 /usr/sbin/cron

This should mean the cron process is running.

Thanks

Mike
 
It looks as if you have set cron up correctly. Did the user who is running this get a mail when the script was supposed to run? Can you set the script up to send errors to a log file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top