Name

ntp-wait

Synopsis

ntp-wait [-v] [-f] [-n num_tries] [-s time]

Description

A Perl script that reports whether the local ntpd has synchronized yet. Returns 0 if synchronized; 1 if not.

Options/Usage

-f

Causes ntp-wait to return 1 if an indeterminate result is received from ntpd; otherwise, ntp-wait returns 0.

-n

Specifies the number of times to try for a successful result before quitting. Defaults to 1000.

-s

Specifies the number of seconds between tries. Defaults to 6.

-v

Enables verbose output to standard output.

Location

/usr/bin

Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.