GPS - how to get lat lon and time from a bash script file ?

Timo Juhani Lindfors timo.lindfors at
Sun Feb 22 14:43:40 CET 2009

kimaidou <kimaidou at> writes:
> * know when I got a fix
> * put the latitude, longitude and time into variables (and why not the
> precision too : hdop)

$ cat bin/gps-get-position
echo p | nc -w1 0 gpsd | tr -d '\r\n' | cut -d'=' -f2

More information about the community mailing list