LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cron Job Not Running (http://www.linuxquestions.org/questions/linux-general-1/cron-job-not-running-99437/)

pzorn 10-02-2003 11:03 AM

Cron Job Not Running
 
I have setup a cron job that says this.

0 5 10 15 20 25 30 35 40 50 55 * * * /home/xmlparse.pl (with and without commas)

I ran crontab -xmlparse.ctb

Then when i do crontab -l

It shows up when it prints out the line. Also I did just in case after creating in /etc/rc.d/init.d/crond restart.

If i type the command /home/xmlparse.pl in the command line it runs fine.

Not sure what is going on, also my dis. is Red Hat 9.

Blinker_Fluid 10-02-2003 11:19 AM

should be
0,5,10,15,20,25,30,35,40,50,55 * * * * /home/xmlparse.pl

Minute Hour day month day_of_week Command

It appears that you are missing one field.

pzorn 10-02-2003 12:44 PM

Thanks, for the response. But it still doesn't seem to be working. I am not sure what is going on? Any other suggestions.

yapp 10-02-2003 01:18 PM

If you edit your crontab with "crontab -e", it will update the cron database automatically ;) no need to restart cron.

But do you receive an e-mail, because on an job-failure? Your e-mail should be stored in /var/spool/mail/<username>; this is your local unix mail. If you use a console-mail client, such as "pine", it will only read from that folder ;)

Is the script executable too?, and why do you store the file in your /home/ folder?

yapp 10-02-2003 01:38 PM

If you edit your crontab with "crontab -e", it will update the cron database automatically ;) no need to restart cron.

But do you receive an e-mail, because on an job-failure? Your e-mail should be stored in /var/spool/mail/<username>; this is your local unix mail. If you use a console-mail client, such as "pine", it will read mail from that folder ;)

Is the script executable too?, and why do you store the file in your /home/ folder?


All times are GMT -5. The time now is 09:47 PM.