[Cialug] crontab not doing its thing

Tom Pohl tom at tcpconsulting.com
Wed Apr 27 13:42:59 CDT 2011


ntp.org had dns issues earlier this week. I wonder if they had another outage. Has this worked in the past or is this a new cron job?

You might also try using the full path to ntpdate if you can't just run ntpd like others have suggested.

-Tom

On Apr 27, 2011, at 1:30 PM, David Champion <dchamp1337 at gmail.com> wrote:

> I would agree, you should try to run ntpd instead of the cron job.
> 
> I have seen some systems (older RedHat) where ntpd wouldn't stay running, the system default was to run a cron task like yours. Seems like a band-aid fix.
> 
> If you want to fix the cron, try putting the full path to the binary in the cron entry, since cron doesn't have any environment settings like you do when you run commands from the shell.
> 
> -dc
> 
> On Wed, Apr 27, 2011 at 1:24 PM, Aaron Porter <atporter at gmail.com> wrote:
> On Wed, Apr 27, 2011 at 11:19 AM, 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.
> 
> Have you checked syslog? You should get cron run logs & errors there.
> Also, if time is that important to you, why not run ntpd?
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20110427/11264f81/attachment.html>


More information about the Cialug mailing list