[ gpsdrive ] OT: ? Pipeing stdout and stderr from GPSDrive to a log file

Kevin Brown kevin_brown at qwest.net
Sun Aug 3 11:50:12 AKDT 2008


Rikard Johnels wrote:
> Hi again..
> 
> I run GPSDrive as before: 
> Version 2.09 on SLED 10 sp1, and a  BU-353 USB GPS Receiver.
> 
> I use a HP nc8000 laptop for the experimentations.
> I leave GPSDriove running with "Saver Track" enabled.
> After an undefined time it segfaults on me.
> I want to store a debug log somewhere to try to see WHY it segfaults.
> But i cant seem to redirect the "gpsdrive -d" output into a file.
> 
> I tried several different ways:
> gpsdrive -d >> logfile
> gpsdrive -d 1>&2 >> logfile 
> gpsdrive -d | tee -a logfile
> 
> But from what i can see, the log doesnt really mirror what i see on stdout.
> On stdout i can see logs like
> satnumber:	24 elev :	7 azimuth:	169 signal	0db
> satnumber:	 9 elev:	7 azimuth:	161 signal	0db
> 
> but these does not show up in the logfile,
> 
> So my question is:
> How do i grab EVERYTHING that comes from gpsdrive -d and shove it into a file 
> for later debugging?

gpsdrive -d 2>&1 >> logfile


More information about the GPSdrive mailing list