rascol / PPS-Client

GNU General Public License v2.0
38 stars 9 forks source link

getting jitter value programmatically #11

Open fspegni opened 1 year ago

fspegni commented 1 year ago

Dear developer(s),

thanks for your great work. I'm trying to use it on a scenario that requires to export the current jitter value, but I don't know how to do it.

If I run:

$ pps-client -v > pps.out

I see the jitter values in the pps.out file but I have to CTRL+C it manually, thus I cannot make a bash script with it.

If I run:

$ timeout 5 pps-client -v > pps.out

the process terminates after 5 seconds, but I don't see anything in the pps.out file, so I cannot extract the information.

If I try:

$ pps-client -v | grep jitter | head -n 1 

it hangs, and by checking only:

$ pps-client -v | grep jitter

I can see there is no line matching.

I'm out of solutions. Do you see a way to arrange the commands so that I can satisfy my scenario with your current implementation?