need help - processes and directories
michael.odonnell at comcast.net
michael.odonnell at comcast.net
Wed Aug 13 11:07:36 EDT 2003
> Is there a way I can find out what processes are 'sitting' in
> a directory? For example a program that has used chdir to get to
> a particular directory?
>
> I thought lsof would be able give me that info, but I am unable
> to find the correct option if it can.
for every PID of interest
do
if symlink /proc/$PID/cwd points at $directoryOfInterest
then
You found one...
fi
done
More information about the gnhlug-discuss
mailing list