[comp.sys.ti.explorer] time-service

) (12/02/89)

can anyone tell me how to get TIME-SERVICE from a Unix box? in particular, a
Convex or a Silly Graphics. time on the Exploder is still losing a minute/day,
and occasionally in the lab it really gets doodled up. I did get all the 
machines sync'd on a daily basis, but that only means that they're all wrong by
the same amount.

I'd like to have them match other machines, and would use our VAX if it's TCP
included time-service (but, hey! it doesn't include print-service, so why 
expect time-service?)

 -- clint

jwz@teak.berkeley.edu (Jamie Zawinski) (12/02/89)

> can anyone tell me how to get TIME-SERVICE from a Unix box? in particular, a
> Convex or a Silly Graphics. time on the Exploder is still losing a minute/day,
> and occasionally in the lab it really gets doodled up. I did get all the 
> machines sync'd on a daily basis, but that only means that they're all wrong by
> the same amount.
> 
> I'd like to have them match other machines, and would use our VAX if it's TCP
> included time-service (but, hey! it doesn't include print-service, so why 
> expect time-service?)
> 
>  -- clint

I think that if the machine you want to get the time from has 
(:TIME :UDP :TIME-SIMPLE-MSB) on its services list, and if it is first
on the :PRIMARY-TIME-SERVERS site option, everything should work out.
If you want to make sure that a host *really* provides a time service,
then call the function NET:HOST-TIME with the host you want to test.
If this returns a UT, then you're in business.  If it returns "Host Not
Responding" then you have to add this to /etc/rc.local:

if [ -f /etc/timed ]; then
	/etc/timed & 		echo -n ' timed'	>/dev/console
fi

		-- Jamie