O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required