need help - processes and directories
Jeff Macdonald
jeff.macdonald at virtualbuilder.com
Wed Aug 13 21:18:21 EDT 2003
On Wed, 2003-08-13 at 15:47, Kevin D. Clark wrote:
> Jeff Macdonald <jeff.macdonald at virtualbuilder.com> 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 <jeff.macdonald at virtualbuilder.com>
My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html
Into birding? Visit http://www.migratus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030813/73dd6491/attachment.bin
More information about the gnhlug-discuss
mailing list