Operating System - HP-UX
1826055 Members
4417 Online
109690 Solutions
New Discussion

Query Loaded Shared Libraries

 
kenneth kahn_4
Occasional Contributor

Query Loaded Shared Libraries

Is there any way on a HP-UX 11.0 system that I can query what shared libraries are loaded for all processes currently running? I have a situation that can only be explained if a certain shared library is already loaded, but I can't find anything I'm doing that would expplicitly load it; I've rebooted the system to 'clear things up' without success.

So I'd like to see if some process I'm not aware of has loaded this shared library.
3 REPLIES 3
Dietmar Konermann
Honored Contributor

Re: Query Loaded Shared Libraries

Kenneth,

I usually use fuser(1M) to check things like that. It should report 'm' for processes that have the shared library mapped.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Dave Hutton
Honored Contributor

Re: Query Loaded Shared Libraries

lsof shows processes and shared libs that are in memory.

You can download it here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.70/

But I'm not sure if this will get you the info you need, but at least is a place to start.

Dave

Jean-Luc Oudart
Honored Contributor

Re: Query Loaded Shared Libraries

Kenneth,

If I want to know which process uses a specific shared library, I run the fuser command :
fuser -fu

If I want what files are opened by a specific process I use lsof :
lsof -p

Regards,
Jean-Luc
fiat lux