rdate-gets the date and time via the network

 <  Day Day Up  >  

rdate ”gets the date and time via the network

 rdate [-p] [-s] [host...] 

rdate uses TCP to retrieve the current time of another machine using the protocol described in RFC 868. With the -p option, rdate prints the time retrieved from the remote machines. This is the default mode. With the -s option, rdate sets the local system time from the time retrieved from the remote machine. Only the superuser can reset the time. The time for each system is returned in ctime (3) format.

Example A.44.
 1  rdate homebound atlantis  (Output)  [homebound]   Tue Jan 18 20:35:41 2000   [atlantis]    Tue Jan 18 20:36:19 2000  

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net