1834129 Members
2770 Online
110064 Solutions
New Discussion

Re: sockets

 
SOLVED
Go to solution
Raspopova Elena
Occasional Advisor

sockets

I use HP-UX B.11.23 at work. Is it possible to define ID of the process that listens to particular TCP port? Thanks in advance.
4 REPLIES 4
Muthukumar_5
Honored Contributor

Re: sockets

Yes. Use lsof tool to get this.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=238432

Download and install. USe as,

# lsof -i tcp:

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor
Solution

Re: sockets

Use this,

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

to download 11.23 lsof tool.

Install with swinstall utility.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: sockets

Hello,

You mean, you want to use a particular PID for the process ? I think, it could be possible. Check http://docs.hp.com/en/B2355-90136/index.html

BSD programmers guide for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Raspopova Elena
Occasional Advisor

Re: sockets

Thanks for your help.

Muthu, thanks for the tool. It is what I need.