Name

ntp-wait

Synopsis

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

This is a Perl script that reports whether the local ntpd has synchronized yet. Returns 0 if synchronized, 1 if not.

Options

-f

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

-n

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

-s

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

-v

Enable verbose output to standard output.

Get Mac OS X Tiger in a Nutshell 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.