[ale] listing shared objects in use by a process?

Joseph A Knapka jknapka at earthlink.net
Mon Dec 3 11:54:02 EST 2001


John Wells wrote:
> 
> Is there a utility that will print all shared objects
> currently being accessed/used by a process?
> 
> Thanks,
> 
> John
> 

If you have "lsof" installed, you can use "lsof -p <PID>"
to see all the files opened by the process, and shared
libs will be among them. Grepping that for "\.so$" will
usually do what you want, unless the process in question
has opened a shared object as a normal file for some
reason.

Here's the lsof maintainer's home page:

<URL: http://www-rcd.cc.purdue.edu/~abe/>

Cheers,

-- Joe

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list