howto read ntpq output directly?

  • Follow


hello there.

i have a network of machines that are synchronized by ntpd.
i would like to read the output of nptq -c peer directly from
my c source code (specifically, i would like to read the tallycode
to know if the machines are synced). one ugly way is to
system("ntpq -c peer > somefile"), and do some parsing on the output
file (looking for * and such). does any of you masters of global
time know of a cleaner way to do that?
greatly appreciate your oncoming help,
avishai.

0
Reply avishai.hendel (1) 3/21/2005 9:33:12 AM


0 Replies
785 Views

(page loaded in 0.036 seconds)

Similiar Articles:













7/24/2012 5:16:01 PM


Reply: