man gpspipe (Commandes) - tool to connect to gpsd and retrieve sentences
NAME
gpspipe - tool to connect to gpsd and retrieve sentences
SYNOPSIS
DESCRIPTION
gpspipe is a tool to connect to gpsd and output the received sentences to stdout. This makes the program useful as a pipe from gpsd to another program or file. Presently it only connect to gpsd on the localhost on the default port (2947).
gpspipe does not require root privileges, and can be run concurrently with other tools connecting to the local gpsd without causing problems.
The output will consist of one or both of the raw NMEA or native gpsd sentences. Each line can be optionally time stamped. There is also an option to exit gracefully after a given count of packets.
An optional argument may specify a server to get data from; a colon-separated suffix is taken as a port number.
OPTIONS
-h makes gpspipe print a usage message and exit.
-r causes raw NMEA sentences to be output.
-s option causes the collected data to be written to the specified serial device.
-w causes native gpsdsentences to be output.
-t adds a timestamp to each sentence output.
-n [count] causes [count] sentences to be output. gpspipe will then exit gracefully.
-V prints the version, then exits.
One or both or -r and -w must be specified.
EXAMPLE
When gpsd is running gpspipe -r -n 100 will send one hundred raw NMEA sentences to standard output. The exit.
AUTHOR
Gary E. Miller <gem@rellim.com>. There is a project page for gpsd here: http://gpsd.berlios.de/.