watching all activity on a file?
Kevin D. Clark
kevin_d_clark at comcast.net
Thu Dec 20 18:37:39 EST 2007
Bill McGonigle writes:
> This is useful, but I was hoping to also get the PID that was
> piddling so I could find out why a certain file was being messed
> with.
How about:
while inotifywait -e modify /file/you/are/interested/in; do
lsof /file/you/are/interested/in >>/tmp/logfile
date >>/tmp/logfile
done
Regards,
--kevin
--
GnuPG ID: B280F24E And I still have that record
alumni.unh.edu!kdc of Little Anthony and The Imperials
but someone stole my record player
Now how do you like that?
-- Tom Waits
More information about the gnhlug-discuss
mailing list