Date: Thu, 01 Feb 2007 02:24:00 +0100 From: Karol Kwiatkowski <karol.kwiat@gmail.com> To: Glenn Gillis <glenn@elaw.org> Cc: freebsd-questions@freebsd.org Subject: Re: Obtaining a pid or process owner from netstat? Message-ID: <45C14130.1040502@gmail.com> In-Reply-To: <45C1381F.7010308@elaw.org> References: <45C1381F.7010308@elaw.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDEBCE1911F4692CA54A300DE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Glenn Gillis wrote: > If 'netstat -anp tcp' shows me an IP address and port with a process > listening on it, can anyone suggest a way to determine either the pid o= r > the owner of the process that is bound to that address? >=20 > In other words: >=20 > % netstat -anp tcp | grep LISTEN > tcp4 0 0 64.112.226.133.8091 *.* LISTE= N > tcp4 0 0 64.112.226.133.8090 *.* LISTE= N > tcp4 0 0 *.8021 *.* LISTE= N > tcp4 0 0 *.8080 *.* LISTE= N > tcp4 0 0 64.112.226.141.8080 *.* LISTE= N > tcp4 0 0 64.112.226.133.13080 *.* LISTE= N >=20 > I'm interested in what is listening on 64.112.226.141.8080, mainly > because I need something else to listen there. I know it's a Zope > instance, but I can't tell *which* Zope instance (there are many on thi= s > box.) >=20 > NB: This is on a 4.11-RELEASE-p26 box. Have a look at sockstat(1) and its options (like '-4' '-l' and '-p'). HTH, Karol --=20 Karol Kwiatkowski <karol.kwiat at gmail dot com> OpenPGP 0x06E09309 --------------enigDEBCE1911F4692CA54A300DE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFwUE5ezeoPAwGIYsRCMNLAJ9dYXrJQFSfZjj+ecqsz7EFZ1jbKwCfc98+ euR3jbtbBWopEGNC/kJ9Tf4= =5+gZ -----END PGP SIGNATURE----- --------------enigDEBCE1911F4692CA54A300DE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C14130.1040502>