Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my cron jobs are executed half an hour later than when they are supposed to. Does cron refer to the system time when it executes its jobs or refers to its own time(if it has one)?

share|improve this question

migrated from stackoverflow.com May 3 '12 at 8:07

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

cron refers to system time, so you may have to correct the clock.

share|improve this answer

Yes, cron will run at the system time, which might be different to yours.

echo $TZ

and compare that to /etc/TIMEZONE

Or the time might be wrong, have you configured ntp?

to check:
/usr/sbin/ntpq -c peers

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.