need help - processes and directories

Kevin D. Clark kclark at CetaceanNetworks.com
Wed Aug 13 15:47:23 EDT 2003


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

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


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

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list