dirnotify is a simple command-line utility for Linux for directory events notification. It currently uses the dnotify linux kernel mechanism (soon to be replaced by inotify).
The terminal output below should give a hint of how it works:
$ dirnotify -t $HOME 18:02:04 .xsession-errors resized[4524654=>4524747] 18:02:04 .xsession-errors resized[4524747=>4524944] 18:02:04 .xsession-errors resized[4524944=>4524959] 18:02:04 .xsession-errors resized[4524959=>4524990] 18:02:05 .xsession-errors resized[4524990=>4525271] 18:02:06 .xsession-errors resized[4525271=>4525381] 18:02:06 .xsession-errors resized[4525381=>4525516] 18:02:06 .xsession-errors resized[4525516=>4525616] 18:02:06 .Xauthority read 18:02:06 .Xauthority read 18:02:06 .ICEauthority read 18:02:06 .ICEauthority read 18:02:06 .DCOPserver_linux__0 read 18:02:06 .DCOPserver_linux_:0 read 18:02:06 .ICEauthority read 18:02:06 .ICEauthority read 18:02:06 .ICEauthority read 18:02:06 .ICEauthority read 18:02:06 .ICEauthority read 18:02:06 .xsession-errors resized[4525616=>4525736] 18:02:06 .xsession-errors resized[4525736=>4525870] 18:02:07 .xsession-errors resized[4525870=>4526157] 18:02:07 .bashrc read 18:02:07 .Xauthority read 18:02:07 .bash_history read 18:02:07 .bash_history read 18:02:11 OUT created 18:02:14 .xsession-errors resized[4526157=>4526223] 18:02:22 OUT resized[5=>10] 18:02:28 .bashrc read
Files: