Running ntpdate from cron.daily

Colin Law clanlaw at googlemail.com
Sun Jul 17 08:38:55 UTC 2011


In order to keep the SheevaPlug that controls my weather station time
synchronised I followed the instructions in [1] and created a file
etc/cron.daily/ntpdate containing
ntpdate ntp.ubuntu.com
and made it executable.  This did not work and I realised that I
needed to start the file with
#! /bin/bash
and then it worked fine.  Before I go and edit the wiki can someone
confirm that I have correctly analysed the problem.

Colin

[1] https://help.ubuntu.com/community/UbuntuTime#Command%20Line%20ntpdate




More information about the ubuntu-users mailing list