Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
      print join ' ', $t->timestamp, $t->lat, $t->lon, $t->alt;
      exit
    }
    
  2. or download this
    perl -MNet::GPSD3 -le '$g=Net::GPSD3->new;$g->addHandler(\&tpv);sub tp
    +v{$t=shift;return unless$t->class eq"TPV";print join" ",$t->timestamp
    +,$t->lat,$t->lon,$t->alt;exit}$g->watch'