-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 5 May 2004 14:39:11 +0300, Ira Abramov <[EMAIL PROTECTED]> wrote:
> Date: Wed, 5 May 2004 14:39:11 +0300
>
> Let me guess. you have a site with windows machines, company policy was
> oddly to stay at wintertime instead of fixing the time zone, and you are
> left with having to set your linux machine to GMT+2 to conform. have I
> got it right?

I don't think this is the problem. He asked for "ntp" synchronization,
so he does not synchronize against the Windoze machine.

For this (your) problem, which is a local network synchronization, I
suggest to use `clockdiff' (you must be root to run it). Together with
the `adjtime(2)' system call you can keep the clock synchronized (like
using `ntpdate'). For some reason I can't find the adjtime man page on
my linux machine, but it is installed. You can find the man page here:
http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/gLSB/baselib-adjtime-2.html

You can also use adjtimex(2), which is Linux only and already has a
program, adjtimex(8), that implement it. If you use adjtimex(8) you can
write a small script that will get the time difference (in milliseconds)
by clockdiff, subtract/add the hours difference, and uses adjtimex to
slew the system clock.

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQFAmVGzLFvTvpjqOY0RAogDAJ98sigoTiedw2R9QxxUwgWSMnoaUACeJiYR
5n65V3A8E+CJY5eW5cdXQkg=
=ZDN7
-----END PGP SIGNATURE-----

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to