#!/bin/csh -f #H# compares the local clock against my time server. # ensure that the path is right for OpenBSD... setenv PATH ${PATH}:/usr/local/clockspeed/bin set HostName=`uname -n` #if ($HostName == "hellmouth" || $HostName == "hellmouth2") then if ($HostName == "hellmouth") then # hellmouth is time.sanitarium.net so I need to check against a higher power ;) set TimeServer="timesource.sanitarium.net" # also need to use sntpclock instead of taiclock. set Command="sntpclock" else set TimeServer="time.sanitarium.net" set Command="taiclock" endif ${Command} `dnsip $TimeServer` | clockview |& sed -e 's/^before:/local: /' -e 's/^after: /remote:/'