Shell script help needed to parse ntpd -q output
1 Attachment(s)
I am runing an ntp server here with hte shm PPS drivers and occasionaly the driver hangs causing the GPS signal and timing to fail...the driver is still running so I can't test for it with psmon...what I'd like to do is as follows but I don't know nearly enough awk/sed/shell programming to pull it all off.
Code:
My Main problem is: George |
Something like
Code:
#!/bin/bash |
That looks like it will do it.
One note I had to change the last tine to done <<< "$( ntpq -p )" ---------- Post added 03-30-12 at 06:31 AM ---------- I'll test it out and report back by end of day hopeflly. |
Quote:
|
No problem. What I have here isworking well.
Thank you very much. I'll be markingit solved with your solution. |
All times are GMT -5. The time now is 02:18 AM. |