Notes inotify

Liens :

apt-get install inotify-tools
inotifywait -r /
cat /proc/sys/fs/inotify/max_user_watches
echo 50000 > /proc/sys/fs/inotify/max_user_watches
 
inotifywait -e modify -r -m /var/log

Exécuter quelques chose à chaque changement dans une arborescence

source : https://www.geekarea.fr/wordpress/?p=783

while inotifywait -r -e modify -e move -e create -e delete --exclude .swp .; 
do  pkill flask; 
    sleep 1; 
    flask run --host=0.0.0.0 & 
done