On Wed, 2003-08-13 at 15:47, Kevin D. Clark wrote:
> Jeff Macdonald <[EMAIL PROTECTED]> writes:
> 
> > ls -l [0-9]*/cwd | grep <dir of interest>
> 
> 
> Two comments: 
> 
> 1: This gives false positives in the following scenario:
> 
>         /dir/of/interest
>         /dir/of/interest/just/kidding/ha/ha
> 

ah, but I am interested in those entries below /dir/of/interest too...


> 2: Using lsof is more portable than using /proc directly.
> 
> 

Yep, lsof gave me the results I was looking for once I became root.


> However, it doesn't sound like you're looking for a bulletproof
> solution, so I guess these points are moot.
> 

Actually all suggestions were great and I ended up using lsof which
pointed to a bug I had in some code. The end result was that the code
wasn't closing files..... 

-- 
Jeff Macdonald <[EMAIL PROTECTED]>
My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html
Into birding? Visit http://www.migratus.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to