On Sonntag 03 August 2008, Kevin Brown wrote:
> 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
wasn't it
gpsdrive -d 2>&1 | tee -a logfile
or
gpsdrive -d >> logfile 2>&1
and if you want it in two seperate Files:
gpsdrive -d >logfile-stdout 2>logfile-stderr
--
Jörg
http://www.ostertag.name/
http://www.openbc.com/go/invita/Joerg_Ostertag
_______________________________________________
GPSdrive mailing list
GPSdrive@???
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive