On Tue, Oct 11, 2011 at 6:53 AM, hadi motamedi <motamed...@gmail.com> wrote:
>>>>> How about something like this: >>>>> watch -n 1 lsof /path/to/files >>>> >>>> Or maybe: >>>> inotifywait -m -e access --format "%T %f" --timefmt "%D >>> %T" -r >>>> /path/to/files > Excuse me, you are right. I tried again with your "inotifywait" > utility and it notifies me when touching a file . It seems that my > previous attempt had something wrong in it. But it seems that the > "watch" utility brings nothing . Am I right? intofywait should be event-driven where watch would run the specified command at intervals so it would be a matter of chance to catch a momentary event. You might also be able to see what files had been accessed most recently with 'ls -lurt' in the directory which will sort the most recently accessed file to the end of the list. -- Les Mikesell lesmikes...@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos