Operating System - HP-UX
1834154 Members
1998 Online
110064 Solutions
New Discussion

If a port is used,Can I find which process use it ?

 
xiongye_2
Occasional Advisor

If a port is used,Can I find which process use it ?

If a port is used,Can I find which process use it ? Thanks !!
xysco
3 REPLIES 3
steven Burgess_2
Honored Contributor

Re: If a port is used,Can I find which process use it ?

Hi

There is an application called lsof which will do this for you

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.55/

usage

/opt/lsof/bin/lsof -i:

will show all open processes on that particular port

HTH

Steve
take your time and think things through
Michael Tully
Honored Contributor

Re: If a port is used,Can I find which process use it ?

Or a later version, which can be just unzipped and copied:

Anyone for a Mutiny ?
V. V. Ravi Kumar_1
Respected Contributor

Re: If a port is used,Can I find which process use it ?

hi,

use lsof
usage: lsof -i:1521(port number)

regds
Never Say No