[ntp:questions] ntp version 4.2.7p257-o

Dave Hart hart at ntp.org
Wed Feb 22 09:41:41 UTC 2012

On Tue, Feb 21, 2012 at 08:12, Michael Tatarinov <kukabu at gmail.com> wrote:
> easier :)
> #!/bin/sh
> eval `ntpq -c 'rv 0 ss_uptime'`
> let secs=$(($ss_uptime%60))
> ...

You get the gold star for using ntpq as it was designed to be used :)
So many people screen-scrape human-readable ntpq displays without
realizing it's all built on var=value underneath.

Dave Hart

More information about the questions mailing list