I have a file and a lot of process (and process threads) are accessing it.
I want to monitor the file to get a listing of what all processes tried to access the file. Being able to record the timestamps also would be excellent for logging purposes, though I can do without it.
Is there any Unix utility that does something similar?
In case no such utility exists, how should I program this using a script (shell, Perl) or a program (C, C++)?