timed problems?

Ed Anselmo Anselmo-Ed at cs.yale.edu
Sat May 26 01:43:10 AEST 1990


Me> You don't have to run ntpd on all the workstations.  You can do
Me> something like

Me> 0 * * * * sleep `expr $$ % 60`;/usr/local/etc/ntp -s -f ntpd-host1 ntp-host2

Me> out of cron to keep the workstation clocks in sync with the machines
Me> running ntpd.

Proving that I am a true wannabe pseudo-wizard.  You have to escape
the '%' with a backslash, lest cron treat it as a newline.  No wonder
my clocks were drifting.
--
Ed Anselmo   anselmo-ed at cs.yale.edu   {harvard,decvax}!yale!anselmo-ed



More information about the Comp.unix.wizards mailing list