watching all activity on a file?
Bill McGonigle
bill at bfccomputing.com
Thu Dec 20 22:05:06 EST 2007
On Dec 20, 2007, at 18:37, Kevin D. Clark wrote:
> How about:
>
> while inotifywait -e modify /file/you/are/interested/in; do
> lsof /file/you/are/interested/in >>/tmp/logfile
> date >>/tmp/logfile
> done
If it were someone editing a file, that would be a great solution.
In this particular case I'm trying to catch an unlink - my hunch is
lsof woudn't show anything.
-Bill
-----
Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill at bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf
More information about the gnhlug-discuss
mailing list