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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

On Friday 30 January 2004 08:21 pm, Joe Klemmer wrote:
> On Fri, 2004-01-30 at 11:03, Robert P. J. Day wrote:
> > but the "iburst" option, as useful as it might be, is meant to be
> > placed in the config file /etc/ntp.conf.  i was looking for an
> > explicit command-line option so that i could sync the system time
> > *without* having to mess with the config file first.
> >
> > as deprecated as "ntpdate" might be, it at least had the virtue of
> > being self-contained.

I missed the start of this thread, but does "ntpdate <server>" not do what 
you want? I run it here from a cron job every 2 hours, seems to work 
fine.

$ cat /etc/redhat-release
Fedora Core release 1 (Yarrow)

$ tail -1 /etc/crontab
30 */2 * * * root /usr/sbin/ntpdate  tuxfan > /dev/null

$ ntpdate tuxfan
30 Jan 21:29:05 ntpdate[28196]: adjust time server 192.168.0.3 offset 
- -0.000253 sec

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0|9 in 8M of RAM: http://www.rule-project.org/en/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAGxTfn/07WoAb/SsRAlOHAJ9wpghS9GPctShZCt+2cCasO6NoRgCeKHVN
Zi6/zkAJ6qBiyC1gygQ8AIA=
=XXAs
-----END PGP SIGNATURE-----




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux