[10906] | 1 | .\" $Id: gettime.8,v 1.1 1997-12-15 00:35:49 cfields Exp $ |
---|
| 2 | .\" |
---|
| 3 | .\" Copyright 1997 by the Massachusetts Institute of Technology. |
---|
| 4 | .\" |
---|
| 5 | .\" Permission to use, copy, modify, and distribute this |
---|
| 6 | .\" software and its documentation for any purpose and without |
---|
| 7 | .\" fee is hereby granted, provided that the above copyright |
---|
| 8 | .\" notice appear in all copies and that both that copyright |
---|
| 9 | .\" notice and this permission notice appear in supporting |
---|
| 10 | .\" documentation, and that the name of M.I.T. not be used in |
---|
| 11 | .\" advertising or publicity pertaining to distribution of the |
---|
| 12 | .\" software without specific, written prior permission. |
---|
| 13 | .\" M.I.T. makes no representations about the suitability of |
---|
| 14 | .\" this software for any purpose. It is provided "as is" |
---|
| 15 | .\" without express or implied warranty. |
---|
| 16 | .\" |
---|
| 17 | .TH GETTIME 8 "13 Dec 1997" |
---|
| 18 | .SH NAME |
---|
| 19 | gettime \- synchronize system clock with remote host |
---|
| 20 | .SH SYNOPSIS |
---|
| 21 | .B gettime |
---|
| 22 | [ |
---|
| 23 | .B \-g granularity |
---|
| 24 | ] [ |
---|
| 25 | .B \-s |
---|
| 26 | ] |
---|
| 27 | .B hostname |
---|
| 28 | .fi |
---|
| 29 | .SH DESCRIPTION |
---|
| 30 | .I gettime |
---|
| 31 | is a simple program used to retrieve the time from a remote host |
---|
| 32 | (specified by the required |
---|
| 33 | .B hostname |
---|
| 34 | argument) using the UDP Time Protocol defined in RFC868. It displays |
---|
| 35 | the time acquired on the standard output. If the |
---|
| 36 | .B \-s |
---|
| 37 | option is specified and |
---|
| 38 | .I gettime |
---|
| 39 | is being run as root, the clock of the local workstation will also be |
---|
| 40 | set. If the |
---|
| 41 | .B \-g |
---|
| 42 | option is specified as well, the time will only be set if the |
---|
| 43 | workstation clock is more than |
---|
| 44 | .B granularity |
---|
| 45 | seconds out of synchronization with the remote host. |
---|
| 46 | .I gettime |
---|
| 47 | attempts to retrieve the time five times, with a five second timeout |
---|
| 48 | on each attempt. |
---|
| 49 | |
---|
| 50 | .SH AUTHOR |
---|
| 51 | Craig Fields, MIT Information Systems |
---|
| 52 | .br |
---|
| 53 | Copyright (c) 1997 Massachusetts Institute of Technology |
---|