1847167 Members
6067 Online
110263 Solutions
New Discussion

process

 
Tvs
Regular Advisor

process

hi all..

i want to know which are the files using by one process.. i can get the pid from ps ..

how i can find out thses,.,.
pls help me

tvs
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: process

Hi Tvs,

You can use "lsof" to find out. Download is available from here,

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

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Marco Santerre
Honored Contributor

Re: process

As said before, lsof is definitely the way to go on this one.
Cooperation is doing with a smile what you have to do anyhow.
Arunvijai_4
Honored Contributor

Re: process

Hi Tvs,

# lsof or process name will list all the files opened by the Process. Also, # lsof -c will list.

http://www.akadia.com/services/lsof_intro.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: process

Hi Tvs,

More specifically, Show what files are using the process whose PID is 30297:

# lsof +p 30297

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Indrajit_1
Valued Contributor

Re: process

Hi;

Try this..

#lsof


Cheers
Indrajit
Never Ever Give Up