LinuxQuestions.org
Register a domain and help support LQ
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 05-24-2010, 10:25 AM   #1
ddenton
Member
 
Registered: May 2007
Posts: 114

Rep: Reputation: 15
Anacron question...


Hello all. I've got an RHEL4 server with the following anacron config:

Code:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

1   65  cron.daily      run-parts /etc/cron.daily
7   70  cron.weekly     run-parts /etc/cron.weekly
30  75  cron.monthly        run-parts /etc/cron.monthly
The question I have is, what day does anacron choose to run scripts in the cron.weekly folder?

Is it Monday, or Sunday? Neither?

Thanks...

Dan
 
Old 05-24-2010, 10:34 AM   #2
ddenton
Member
 
Registered: May 2007
Posts: 114

Original Poster
Rep: Reputation: 15
Answered my own question. The last time cron.weekly was run was Sunday morning.
 
Old 05-24-2010, 10:52 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
I'd guess that it probably depends on your locale settings. The first day of the week is defined by your LC_TIME configuration (see 'man 5 locale').
 
Old 05-24-2010, 11:06 AM   #4
ddenton
Member
 
Registered: May 2007
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the response. I was able to verify that Sunday was at the beginning of the day list for my locale. I'm guessing based on that that cron.weekly runs on the first day in the list...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anacron utanja Debian 2 10-05-2009 10:33 AM
anacron script format kalahari875 Linux - Newbie 1 12-02-2005 08:21 PM
anacron not running CarLash Mandriva 0 05-25-2005 08:36 PM
anacron startscript juli Suse/Novell 2 05-01-2005 01:51 PM
Anacron problem sachinh Linux - General 0 02-09-2005 01:02 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration