how to use "ntpd" to emulate "ntpdate"?

jdow jdow at earthlink.net
Fri Jan 30 21:55:31 UTC 2004


From: "Robert P. J. Day" <rpjday at mindspring.com>

> 
>   until now, i've been using "ntpdate" to sync up the clock on my 
> (very mobile) laptop when i wanted to do it manually.  all that
> was necessary was:
> 
>   # ntpdate <some stratum 2 server>
> 
> and the sync was immediate.
> 
>   from the "ntpd" man page, however, ntpdate is deprecated and i can
> theoretically get the same effect with some variation of "ntpd -q".
> but i've tried that and the effect is (as the man page suggests) not
> immediate.  is there a way to have that sync take place immediately
> using "ntpd", rather than waiting for the next sync operation, to 
> more closely emulate the behaviour of ntpdate?
> 
>   or am i misreading the man page?

You may be misreading the documentation. "ntpdate" itself is handy for
a one shot bring the time into synchronization at boot time. Then you
run "ntp" itself to maintain synchronization with no more polls than it
finds are needed to maintain accurate time synchronization.

{^_^}





More information about the fedora-list mailing list