LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2003, 11:03 AM   #1
pzorn
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
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.
 
Old 10-02-2003, 11:19 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
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.
 
Old 10-02-2003, 12:44 PM   #3
pzorn
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, for the response. But it still doesn't seem to be working. I am not sure what is going on? Any other suggestions.
 
Old 10-02-2003, 01:18 PM   #4
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
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?
 
Old 10-02-2003, 01:38 PM   #5
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Screen in a cron job LinuxGeek Linux - Software 1 08-03-2005 12:11 AM
script not running as a cron job sanjith11 Programming 5 11-23-2004 08:42 AM
cron job not running vincebs Linux - Software 34 10-30-2004 01:27 PM
Cron job not running in slackware9.1 marri Linux - Software 2 05-06-2004 06:54 AM
Cron job not running? james_cwy Linux - Newbie 6 12-14-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration