Return to BSD News archive
Xref: sserve comp.sys.sun.admin:24355 comp.unix.bsd:13267 Newsgroups: comp.sys.sun.admin,comp.unix.bsd Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!howland.reston.ans.net!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!solaris.rz.tu-clausthal.de!sun.rz.tu-clausthal.de!bwwl From: Ley@rz.tu-clausthal.de (Wolfgang Ley) Subject: Re: How to track down process id from socket port? Message-ID: <1994Jan14.132643.6290@solaris.rz.tu-clausthal.de> Followup-To: comp.sys.sun.admin,comp.unix.bsd Sender: root@solaris.rz.tu-clausthal.de (Operator) Organization: Techn. Univ. Clausthal X-Newsreader: TIN [version 1.2 RZ-TUC PL2] References: <2h165i$rcu@access3.digex.net> Date: Fri, 14 Jan 1994 13:26:43 GMT Lines: 25 J M Thompson (masato@access3.digex.net) wrote: > I would like to determine which process has opened a particular > tcp socket. For example, from the following output of the > 'netstat -an' command: > tcp 0 0 *.32160 *.* LISTEN > I would like to be able to determine the PID for the process that > has tcp socket port 32160 open. I'm using a program 'lsof' (listen open files). It also lists the network connections. Ask archie for the newest version... (2.27?) Bye, Wolfgang. -- --------------------------------------------------------------------------- Wolfgang Ley email: Ley@rz.tu-clausthal.de Teichstrasse 9 D-38678 Clausthal-Zellerfeld "With workstations you can do a lot of (Germany) nonsense. With PC's not even that..." Phone: +49 5323 82132 --------------------------------------------------------------------------- To obtain public-pgp-key use 'finger bwwl@sun.rz.tu-clausthal.de' or query a public-key-server for 'Ley@rz.tu-clausthal.de'.