LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-31-2010, 04:08 PM   #1
mlev
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 1
Question Cron clock is an hour off system clock


I have cron jobs running and the timing is critical, because I'm running Nessus scans on production servers. If I hit them at the wrong time, I'm toast.
But when I check the cron log, I see that it is an hour off.

Here is the output for the command "clock":
Wed 31 Mar 2010 03:01:26 PM CDT -0.257677 seconds

And this is the tail of the cron log:
Mar 31 16:00:01 nes-001 CROND[8790]: (root) CMD (/Nessus/Targets/NessusScriptDataCenterScan.test)
Mar 31 16:01:02 nes-001 CROND[8822]: (root) CMD (run-parts /etc/cron.hourly)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8822]: starting 0anacron
Mar 31 16:01:02 nes-001 anacron[8832]: Anacron started on 2010-03-31
Mar 31 16:01:02 nes-001 anacron[8832]: Normal exit (0 jobs run)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8834]: finished 0anacron


Cron thinks it is 4:00 p.m., but it's really 3:00 p.m. How do I tell Cron what time it is? (Stopping and restarting the crond service did not change it.)
 
Old 03-31-2010, 04:40 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Looks like "Daylight savings time" or "Summer time" has kicked in, or out. In my part of the world, that happened last weekend.

The management of "time" is complex, because "time" refers to your timezone and if, or not, adjustments are made to that time, depending on the season of the year. Remember that how "time" is represented depends on where in the world you currently are.

Right now, it's 21:38 GMT where I am (in the GMT timezone). But in Australia, it's maybe 09:38 (yesterday / tomorrow?). So what is the "real time"?

Good question.

linux UTC GMT timezone are a good search terms for you to explore.
 
  


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
Failed to set system clock to hardware clock jrtayloriv Linux - Newbie 2 09-25-2008 08:06 AM
Slow system clock and stray hardware clock, pleas help! Epox Linux - General 6 01-02-2007 03:43 PM
change clock from 24 hour to 12 hour in suse 9.2/KDE 3.3 jmlumpkin Linux - Newbie 1 01-23-2005 12:45 AM
KDE clock 1 hour off system time monkeyman2000 Debian 2 09-04-2004 01:29 AM


All times are GMT -5. The time now is 09:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration