you are right. * * * * * is every minute. In fact, if I change the command to "echo x >> /txt" it writes a new line every minute at /txt, but the "/usr/sbin/ntpdate time.nist.gov > /dev/null 2>&1 " dose not work.

FK

Jean-Paul van de Plasse escribió:
Just curious why is it set to never run?
* * * * * would normally be every minute..

JP
----- Original Message ----- From: "Jake Vickers" <[EMAIL PROTECTED]>
To: <qmailtoaster-list@qmailtoaster.com>
Sent: Sunday, August 26, 2007 9:44 AM
Subject: Re: [qmailtoaster] cron not working as expected


Basura wrote:
Hi all,
My qmail is the latest qmailtoaster plus ISO.
I need to run the following cron as root

* * * * * /usr/sbin/ntpdate time.nist.gov > /dev/null 2>&1

"/usr/sbin/ntpdate time.nist.gov" is executed perfectly at the console, but as a cronjob using crontab it doesn´t work.


It's set to never run.  It needs to be something like:
35 * * * * /usr/sbin/ntpdate time.nist.gov
What I do on my machines is create a script:

#!/usr/sh
# updatetime script
/usr/sbin/ntpdate time.nist.gov

And drop it into my /etc/cron.hourly folder and make it executbale (chmod +x /etc/cron.hourly/updatetime). You shouldn't need to update the time more than once an hour. If it's getting more than a couple thousandths of a second off in an hour you either have a motherboard issue or one that has a REALLY cheap clock.




---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to