howtos:watch_filesystem_activity_with_inotify
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:watch_filesystem_activity_with_inotify [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Tools needed: | ||
+ | < | ||
+ | sudo apt-get install inotify-tools | ||
+ | </ | ||
+ | Example script: | ||
+ | < | ||
+ | inotifywait -mrq -e create -e modify -e delete -e attrib -e move ~/Maildir | while read file | ||
+ | do | ||
+ | (notify-send "File updated in Maildir:" | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | The script will watch the Maildir directory for file changes and send a notification to the desktop. | ||
+ | |||
+ | To get all events just omit the event list: | ||
+ | < | ||
+ | inotifywait -r -m / | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | Source: http:// |
howtos/watch_filesystem_activity_with_inotify.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1