Previous Section  < Day Day Up >  Next Section

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


    Previous Section  < Day Day Up >  Next Section