inotify-tools: inotifywait

I wanted to see what files and when J-Pilot accesses its pdb and pc3 files. In my case strace produces much more output than actually needed. But inotifywait shows what and when files are accessed.

inotifywait -m .jpilot/


inotifywait is in Debian/Ubuntu package inotify-tools.

Here is an example of the output:

.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ ACCESS DatebookDB.pdb
.jpilot/ CLOSE_NOWRITE,CLOSE DatebookDB.pdb
.jpilot/ OPEN DatebookDB.pc3
.jpilot/ ATTRIB DatebookDB.pc3
.jpilot/ CLOSE_NOWRITE,CLOSE DatebookDB.pc3
.jpilot/ CREATE jpilot.alarms.tmp
.jpilot/ OPEN jpilot.alarms.tmp
.jpilot/ ATTRIB jpilot.alarms.tmp
.jpilot/ MODIFY jpilot.alarms.tmp
.jpilot/ CLOSE_WRITE,CLOSE jpilot.alarms.tmp
.jpilot/ MOVED_FROM jpilot.alarms.tmp
.jpilot/ MOVED_TO jpilot.alarms
.jpilot/ MODIFY jpilot.rc
.jpilot/ OPEN jpilot.rc
.jpilot/ ATTRIB jpilot.rc
.jpilot/ MODIFY jpilot.rc
.jpilot/ CLOSE_WRITE,CLOSE jpilot.rc
.jpilot/ MODIFY jpilot.rc
.jpilot/ OPEN jpilot.rc
.jpilot/ ATTRIB jpilot.rc
.jpilot/ MODIFY jpilot.rc
.jpilot/ CLOSE_WRITE,CLOSE jpilot.rc
Advertisements

One thought on “inotify-tools: inotifywait

  1. Pingback: Installing Ubuntu 14.04 Server Edition | Elmar Klausmeier's Weblog

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s