Subject: RE: Identifying Process/Command For Listening Socket
To: None <netbsd-help@netbsd.org>
From: Conrad T. Pino <Conrad@Pino.com>
List: netbsd-help
Date: 12/20/2002 12:26:44
My mystery program was BIND's "query-source" random port.
Thank you.
-----Original Message-----
From: netbsd-help-owner@netbsd.org
[mailto:netbsd-help-owner@netbsd.org]On Behalf Of Julian Coleman
Sent: Friday, December 20, 2002 07:15
To: NetBSD netbsd-help mailing list
Subject: Re: Identifying Process/Command For Listening Socket
> The "netstat -an" command shows me UDP port 65506 is open for listening:
> How can I identify the PID or Command for a listening UDP port on NetBSD
1.5.2?
Use fstat? For example (port 993) :
$ netstat -an
...
tcp 0 0 *.993 *.* LISTEN
...
$ fstat | grep 993
root inetd 265 23* internet stream tcp f083b6f8 *:993
J
--
My other computer also runs NetBSD
http://www.netbsd.org/