OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / rdate / original / man1 / rdate.1
1 .TH RDATE 1 3/24/85
2 .CM 1
3 .SH "NAME"
4 rdate \- get the date and time via the network
5 .SH "SYNOPSIS"
6 .B rdate
7 [\-p] [\-s] [\-u] [host...]
8 .SH "DESCRIPTION"
9 .B Rdate
10 uses TCP or UDP to retrieve the current time of another machine using
11 using the protocol described in RFC 868.
12 The time for each system is returned in
13 ctime(3) format. The following is an example:
14 .nf
15 .IP ""
16 % rdate uci mc
17 [uci]   Sun Mar 24 20:35:41 1985
18 [mc]    Sun Mar 24 20:36:19 1985
19 .fi
20 .SS OPTIONS
21 .TP
22 .I \-p
23 Print the time retrieved from the remote machines.  This is the default
24 mode.
25 .TP
26 .I \-s
27 Set the local system time from the time retrieved from the remote
28 machine.  This, quite naturally, is only effective for root.
29 .TP
30 .I \-u
31 Use UDP to retrieve the time instead of TCP.
32 The client will timeout if no reply is received within 5 seconds.
33 .SH FILES
34 .nf
35 /etc/services   map service name to socket number
36 /etc/hosts      map host name to internet address
37 .fi
38 .SH HISTORY
39 .TP
40 24-Mar-85  Lee Moore at University of Rochester
41 Created.
42 .TP
43 10-Oct-94  Andy Tefft <teffta@crypt.erie.ge.com>
44 Updated for Linux 1.1.52.  Set system time when run as root.
45 .TP
46 23-Sep-96  Richard Henderson <rth@tamu.edu>
47 Fixed 32-bit assumptions and added mode options.
48 .TP
49 04-May-99  Ken Yap <ken.yap@acm.org>
50 Added code to use UDP.
51 .SH BUGS
52 Timeout handling on UDP doesn't work after the first server.
53 Something to do with signal(2) semantics I don't understand.