LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 09:26 AM   #1
dwz3591
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Question cron.daily runs at the wrong time


For the past week my cron.daily jobs have been running at 7 am instead of 4 am.

My /etc/crontab file is set to:
02 4 * * * root run-parts /etc/cron.daily

My server time and time zone are set correctly.

User crontab jobs run at the correct time.

Does anyone know what else could be causing this?

Last edited by dwz3591; 10-27-2004 at 09:47 AM.
 
Old 10-27-2004, 09:37 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,926

Rep: Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000Reputation: 6000
Here is format

Minute - Minutes after the hour (0-59).
Hour - 24-hour format (0-23).
Day - Day of the month (1-31).
Month - Month of the year (1-12).
Weekday - Day of the week. (0-6; the 0 refers to Sunday).

I know mine runs at 4:00 AM but its entry is:
00 04 ..... root run-parts.....

At least I thought....


Last edited by michaelk; 10-27-2004 at 09:40 AM.
 
Old 10-27-2004, 09:46 AM   #3
dwz3591
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Oops. I may not have pasted in the entire line. Here is the run-parts section of my /etc/crontab file:

# run-parts
03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
04,34 * * * * root run-parts /etc/cron.half-hourly
01 * * * * root run-parts /etc/cron.hourly
05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Isn't my cron.daily set to run at 4:02 am? It has been running at 7 am.

Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job Daily petenyce Linux - Newbie 17 01-04-2006 11:13 AM
cron.daily question ralvy Slackware 6 12-09-2004 10:55 PM
crontab vs cron.daily ? SheldonPlankton Linux - Newbie 1 07-16-2004 12:10 PM
cron.daily MrJoshua Linux - General 2 03-19-2003 12:09 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 PM.

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