[SunHELP] About lsof
John Lee
sunhelp at sunhelp.org
Wed Nov 22 00:09:52 CST 2000
Thanks for your input. I think "lsof +d <dir>" is very useful when I can't
unmount a directory.
Regards.
John
-----Original Message-----
From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
Behalf Of Jeff Howie
Sent: Tuesday, November 21, 2000 10:28 PM
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] About lsof
John Lee wrote:
>
> Hi all,
>
> I just installed a free tool: lsof v4.45 on my Solaris box. But I don't
know
> how to use it. Could anybody share some experiences on this ?
First off, why did you install it, for what purpose? We use it here to
check to see if a process is finished with the files in a particular
work directory:
$ while (lsof +d /tmp/wrk | grep "file-pattern" >/dev/null 2>&1)
> do
> sleep 1
> done
$
Your best be is to 'man lsof' & go from there.
thks.jeff
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list