table of contents
NTPLOGGPS(8) | NTPsec | NTPLOGGPS(8) |
NAME¶
ntploggps - log gpsd data
SYNOPSIS¶
ntploggps [-h] [-l LOGFILE] [-o] [-w WAIT] [-v] [-V]
-h, --help show this help message and exit -l LOGFILE, --logfile LOGFILE
append log data to LOGFILE instead of stdout -o, --once log one line, then exit -w WAIT, --wait WAIT wait WAIT seconds after each log line, default 5 -v, --verbose be verbose -V, --version show program's version number and exit
DESCRIPTION¶
ntploggps connects to a local gpsd daemon and logs the number of satellites in use and the Time Dilution of Precision (TDOP). ntploggps can run as any user, no special privileges are required.
The default is to write the data to stdout about once every 5 seconds. The log file looks like:
# Time Device TDOP nSat 1483668619.0 /dev/ttyS0 0.820000 7 1483668624.0 /dev/ttyS0 0.820000 7 1483668629.0 /dev/ttyS0 0.820000 7
Time is the POSIX time of when the log line is written.
Device is the GPS device the data came from.
TDOP is the Time Dilution of Precision as reported by the GPS. Some GPS always output a static TDOP.
nSat is the number of satellites in use.
OPTIONS¶
-h, --help
-l LOGFILE, --logfile LOGFILE
-o, --once
-v, --verbose
-w WAIT, --wait WAIT
-V, --version
USAGE¶
ntploggps
ntploggps -l /var/log/ntpstats/gpsd -w 60 &
EXIT STATUS¶
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
1 (EXIT_FAILURE)
AUTHORS¶
Gary E. Miller
EXIT STATUS¶
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
1 (EXIT_FAILURE)
2022-03-08 | NTPsec |