gpsd-dev
[Top][All Lists]
Advanced

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

Re: ✘gpsinfo


From: James Browning
Subject: Re: ✘gpsinfo
Date: Mon, 15 Mar 2021 15:40:12 -0700

On Mon, Mar 15, 2021 at 2:57 PM Gary E. Miller <gem@rellim.com> wrote:
Yo Chris!

On Mon, 15 Mar 2021 14:46:46 -0700
Chris Kuethe <chris.kuethe@gmail.com> wrote:

> On Mon, Mar 15, 2021 at 11:41 AM Gary E. Miller <gem@rellim.com>
> wrote:
>
> > I'd like gpsdebuginfo to work on *BSD and I'm open to solutions.
> > The goal is to see what, if anything, has control of port 2947.
> > 
>
> Since you're already practicing `which`craft, you could see if lsof is
> available. It's not super uncommon.

And do what with "lsof"?

it might provide a workaround to BSDs and macOS not having an option to dump the program working a socket via netstat like so.

# sudo lsof|sed -n "1p;/2947/p;/gpsd/p"
COMMAND     PID               USER   FD      TYPE             DEVICE   SIZE/OFF     NODE NAME
fontd       426             jamesb  txt       REG                1,2      32768   542947 /private/var/folders/t_/9qj36hrn07s3s_1tn9ytpsw40000gn/C/com.apple.FontRegistry/fontregistry.user-shm
fontd       426             jamesb    5u      REG                1,2      32768   542947 /private/var/folders/t_/9qj36hrn07s3s_1tn9ytpsw40000gn/C/com.apple.FontRegistry/fontregistry.user-shm
IMAutomat   517             jamesb  txt       REG                1,2      29472  8694880 /System/Library/PrivateFrameworks/IMDPersistence.framework/IMAutomaticHistoryDeletionAgent.app/Contents/MacOS/IMAutomaticHistoryDeletionAgent
ntpd      12160               root    8u     IPv4 0x47216cc7683555e9        0t0      TCP localhost:58180->localhost:gpsd (ESTABLISHED)
gpsd      55695             nobody  cwd       DIR                1,2       1360        2 /
gpsd      55695             nobody  txt       REG                1,2     633584 12857978 /opt/local/sbin/gpsd
gpsd      55695             nobody  txt       REG                1,2     841504 10120754 /usr/lib/dyld
gpsd      55695             nobody  txt       REG                1,2 1175916544 10122677 /private/var/db/dyld/dyld_shared_cache_x86_64
gpsd      55695             nobody    0u      CHR                3,2        0t0      304 /dev/null
gpsd      55695             nobody    1u      CHR                3,2        0t0      304 /dev/null
gpsd      55695             nobody    2u      CHR                3,2        0t0      304 /dev/null
gpsd      55695             nobody    3u     unix 0x47216cc767cc3039        0t0          /var/run/gpsd.sock
gpsd      55695             nobody    4u     IPv4 0x47216cc761a688b9        0t0      TCP *:gpsd (LISTEN)
gpsd      55695             nobody    5u     IPv6 0x47216cc75a079c91        0t0      TCP *:gpsd (LISTEN)
gpsd      55695             nobody    6r      CHR               21,1 0t33982362     1107 /dev/cu.usbserial
gpsd      55695             nobody    7u     IPv4 0x47216cc76955df51        0t0      TCP localhost:gpsd->localhost:58180 (ESTABLISHED) 


aside from reconfiguration not sticking this one is fine.


reply via email to

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