<div class="gmail_quote">On Wed, Apr 27, 2011 at 1:19 PM, Tim Champion <span dir="ltr"><<a href="mailto:timchampion@gmail.com">timchampion@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I have the following line in cron that seems to not ever run.<br><br>46 03,11,19 * * * ntpdate -s <a href="http://0.north-america.pool.ntp.org" target="_blank">0.north-america.pool.ntp.org</a><br><br>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.<br>


<br>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!<br>


<br>Its Ubuntu 9.04.<br><font color="#888888"><br clear="all"></font></blockquote><div><br></div><div>I think you should be using ntpd. It will adjust your clock continuously.</div><div><a href="https://help.ubuntu.com/8.04/serverguide/C/NTP.html">https://help.ubuntu.com/8.04/serverguide/C/NTP.html</a></div>

<div><br></div><div>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.</div></div><br>-- <br><div>Matthew Nuzum<br>

newz2000 on freenode, skype, linkedin and twitter<br><br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
</style>


<p class="p1">"Opportunity is missed by most people because it is dressed in overalls and looks like work." -Thomas Edison</p></div><br>