Time synch

3 replies [Last post]
allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011

I know that the time synchs as the box boots up but this relys on an internet connection being available at boot time. Unfortunately, my internet connection takes ages to establish and the box is up before the connection exists. I'd like to put a command in the cron file to do a time synch at 00:10 on 1st January so that the box can get a time update if there has been a power cut.

 

Can anyone point me in the direction of how to do this? ntpdate doesn't seem to be installed.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Try the command "ntpclient -s

Try the command "ntpclient -s -h <ntphost>"

Make sure you do set up the cron to only do this once.

Brett

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Thanks Brett, I'll give it a

Thanks Brett, I'll give it a go.

Following a power blip yesterday (when the mean temp was 0 C) the heating timings were all to pot. Causing much grief to/from SWMBO. Reliability is absolutely essential if everyone is to kept on board with the "project" .

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I agree stability is king -

I agree stability is king - at least for me.  I want something that won't crash.  Speaking of which I need to investigate this xap-serial issue.

Hardware Info