gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gpsinfo


From: Gary E. Miller
Subject: Re: gpsinfo
Date: Mon, 15 Mar 2021 15:24:48 -0700

Yo Hal!

On Mon, 15 Mar 2021 15:18:21 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > FreeBSD does not support "netstat -n",   
> 
> Not quite right.  It doesn't support -pn.
> p is for protocol.  It doesn't recognize "n" as a protocol.
> 
> I think "-anp tcp" will do what you want.
> 
> a for all, gets listening sockets
> n for numeric
> "p tcp" for tcp.

You are a few revs behind.  Git head now does this:

    netstat -lp | egrep "gpsd|:2947"

The "-p" is supposed to print the pid of the process holding the
socket.  How did I get that?

Does the ss work?

    ss -lpn | egrep 'gpsd|:2947 '



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpMyJzV4TsRO.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]