Mediagate MG35

 

rdate

Page history last edited by John 1 yr ago

rdate

rdate is a remote time synchronization tool.

Version: 1.4-0

Status: Done



 

Description

Sync the time with a remote TIME protocol (RFC 868) server.

 

Requires a gateway to be set up (either via DHCP or /usr/bin/init). If you want to use names to access the TIME server (recommended) you will also need a resolver (e.g. DNS, hosts file).

Usage

rdate { [-p] | -s } [-t <sec>] [-u] <hostname>
Options:
-p      Print the time as retrieved from <hostname>
-s      Set the system time to the retrieved time
-t <sec>
Set the response timeout to <sec> seconds.
-u      Use UDP TIME packets instead of TCP
<hostname>
The name of the TIME protocol server you wish to query

 

Examples

Show the current (UTC) time:

 

rdate -p 64.90.182.55

rdate: [64.90.182.55] Wed Apr 16 13:06:10 2008

 

Set the hardware clock to the current (UTC) time:

 

rdate -s 64.90.182.55

 

 

Download

Format Location
.bin SourceForge - utility binaries

Put the .bin format rdate (above) into your /usr/bin directory .

 

License

 

Copyright (C) 2000 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
---
By Elliot Lee <sopwith@redhat.com>, because some guy didn't bother
to put a copyright/license on the previous rdate. See bugzilla.redhat.com, bug #8619.

 

Todo

 

History

Version 1.4-0 - [John, 2008-04]

  • Ported.
  • Const-ified port numbers, service numbers, etc. in case of missing config files

 

Version 1.4 - [2004-03-16, Johan Nilsson <joh-nils@dsv.su.se>]

  • Timeout support added.

 

Version 1.3 - [2002-11-06, Elliot Lee <sopwith@redhat.com>]

  • Patch from Tomek Orzechowski - alarm(10) to not wait forever for connections.

 

Version 1.2 - [2001-05-23, Phil Knirsch <pknirsch@redhat.com>]

  • Added UDP protocol support. Close the connection after message handling in conformance to RFC 868.

 

Version 1.1 - [2002-03-07, Elliot Lee <sopwith@redhat.com>]

  • Add syslog functionality.

 

Version 1.0 - [2000-02-04, Elliot Lee <sopwith@redhat.com>]

  • Wrote it (previous incarnation had license problems, all 200 lines of it).

Comments (0)

You don't have permission to comment on this page.