Linux clock-setting script

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Tue Jul 9 23:20:41 EDT 2002


William Park <opengeometry at NOSPAM.yahoo.ca> writes:
> 3.  Daytime Protocol (RFC-867, port 13):
> 	date -u -s `telnet time.nist.gov 13 | grep UTC | cut -f2,3 -d' '`
> 
>     This is shell solution that I've been after.

Woo hoo!  I knew about RFC 868 but it didn't occur to me to use a
telnet command in a pipeline.  I thought telnet had to interact with
the control tty.



More information about the Python-list mailing list