1835061 Members
3124 Online
110073 Solutions
New Discussion

open processes

 
SOLVED
Go to solution
Nyck_1
Super Advisor

open processes

I have a file system called /proj and under that file system I have a directory called nick that I wish to remove. When attempting to do so it comes back with open files witing this nick directory. So can someone remind me of the command that will allow me to list the processes that are running in this nick directory so that I can kill em off and remove it?

I was sure it was fuser but that just seems to work for file systems!
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor
Solution

Re: open processes

Hi Nyck,

fuser or lsof should be able to list open files.

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

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: open processes

Hi:

While 'fuser -c' against a mountpoint will generally work, 'lsof' (available from the HP-UX Porting center) is a far better choice for finding open files.

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.80/

Regards!

...JRF...
Craig A. Sharp
Super Advisor

Re: open processes

fuser /proj/nick

Then you can kill the process that is holding it open.
Nyck_1
Super Advisor

Re: open processes

I tried fuser /proj/nick and it came back with nothing. So i will try the lsof route.

I'm sure I have used fuser on directories before but I could be wrong.
Dennis Handly
Acclaimed Contributor

Re: open processes

>I'm sure I have used fuser on directories before but I could be wrong.

Some times fuser works but lsof is better.