[Cialug] crontab not doing its thing

David Champion dchamp1337 at gmail.com
Wed Apr 27 13:30:33 CDT 2011


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20110427/785a4feb/attachment.html>


More information about the Cialug mailing list