Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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

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

2 Answers

up vote 0 down vote accepted

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

share|improve this answer
add comment

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
add comment

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.