Operating System - HP-UX
1834967 Members
1578 Online
110072 Solutions
New Discussion

Re: Show files/sockets open by process?

 
Jesús Couto Fandiño
Occasional Advisor

Show files/sockets open by process?

Hi.

Checking the "Rosetta Stone" site for different members of the Unix "family", I'm seeing that under the "match process to file or port" category there is no HP-UX command at all.

It is no HP-UX equivalent of lsof, pfiles, etc, at all? Can that info be obtained by looking somewhere in the system?

Thanks in advance
3 REPLIES 3
Muthukumar_5
Honored Contributor

Re: Show files/sockets open by process?

Use fuser utility to check file usage with pid?

fuser /

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

Re: Show files/sockets open by process?

Hello,

lsof is available in HP-UX, all you need is download depot from http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.75/ and install it on your server.

Also, you can use # fuser -u

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jesús Couto Fandiño
Occasional Advisor

Re: Show files/sockets open by process?

Thanks! fuser isnt exactly what I need (its just the reverse question, what process has this file open), but with a bit of work can be used to get that info till I get lsof in all the machines