The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-01-2009
darius2 darius2 is offline
Banned
  
 

Join Date: Jan 2009
Posts: 26
gpsd, gpspipe NMEA sentences stream processing

Hi,

running gpsd, gpspipe I get a stream of NMEA sentences.
What I need is to write awk script for pipelining and on-the-fly processing of the streamed NMEA senteces to output (terminal session in my case).

The issue is, I can get gpsd working in -D 5 mode (debug mode).
There is no issue with gpspipe.

I need to extract some data from specific NMEA sentences (lines)
for use in another pipelined application/s.

I have got some nice examples, reading data from a static file.

Please tell me how to start such a pipeline with live data stream as input .

gpsd stream > filename | awk script - readline
gpsd stream | awk script - readline

Thanks.

Happy New Year
Darius