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

_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to