[Cialug] crontab not doing its thing

Matthew Nuzum newz at bearfruit.org
Wed Apr 27 13:25:47 CDT 2011


On Wed, Apr 27, 2011 at 1:19 PM, Tim Champion <timchampion at gmail.com> wrote:

> I have the following line in cron that seems to not ever run.
>
> 46 03,11,19 * * * ntpdate -s 0.north-america.pool.ntp.org
>
> If I run the ntpdate command alone, it works.  I also fire off a backup
> script that runs successfully daily, so I have no idea what's wrong here.
>
> I have a web site that is very time sensitive.  It locks out bidders at
> noon, and today, a bidder complained that he was locked out at 11:55 am.
> checked the system clock, and it was 5 minutes off.  Now, it should have
> synced at 11:46 am, but it didn't, and now he's pissed.  So, any clue on how
> to put a time sync in cron that works would be wonderful!
>
> Its Ubuntu 9.04.
>
>
I think you should be using ntpd. It will adjust your clock continuously.
https://help.ubuntu.com/8.04/serverguide/C/NTP.html

As for your original question, I don't know, but usually it's due to the
lack of environment variables (path, etc). Your cron log file may be of
help.

-- 
Matthew Nuzum
newz2000 on freenode, skype, linkedin and twitter

   "Opportunity is missed by most people because it is dressed in overalls
and looks like work." -Thomas Edison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20110427/04748fe4/attachment.html>


More information about the Cialug mailing list