Daemon that uses inotify to monitor files/directories
A daemon that monitors for events in a given file/directory, and informs the user of the changes in the log.
Not very useful but I always wanted to use inotify for something...
At the moment it only detects/logs file and directory creation.
mkdir build cd build cmake .. -DBUILDDOC=1 make
or if using ninja (Recommended)
mkdir build cd build cmake .. -GNinja -DBUILDDOC=1 ninja
daemon_inotify FILENAME Where FILENAME is the directory or file to watch (Required argument)
If something like this happens:
cp backup_dr_automated_testing.vp8.webm DIR cp -r Richard_Feynman DIR
[Wed Feb 21 23:20:28 2018] File created: backup_dr_automated_testing.vp8.webm [Wed Feb 21 23:20:33 2018] Directory created: Richard_Feynman
- Using variable number of arguments
- More user friendly log messages
- Add systemd unit
- Add log entries for deletion, modification and rename of file/directories