[SunHELP] About lsof

Jeff Howie sunhelp at sunhelp.org
Tue Nov 21 08:27:59 CST 2000


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



More information about the SunHELP mailing list