{{tag>Brouillon}} = Notes inotify Liens : * http://linuxfr.org/news/exploiter-inotify-c-est-simple * http://kerlinux.org/2010/08/utilisation-de-inotifywait-dans-des-scripts-shell/ * https://techarena51.com/index.php/inotify-tools-example/ * http://info.figarola.fr/2009/11/06/linux-shell-gerer-les-evenements-inotify/ * https://xaroumenosloukoumas.wordpress.com/2011/01/28/watching-directories-for-file-changes-with-inotifywait/ * https://github.com/rvoicilas/inotify-tools/wiki * http://unix.stackexchange.com/questions/86286/use-inotifywait-to-move-file-when-it-loads-in-dropbox-folder * http://superuser.com/questions/956311/continuously-detect-new-files-with-inotify-tools-within-multiple-directories-r 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