[[http://inotify-tools.sourceforge.net/|inotify-tools]] is a set of UNIX utilities to work with Linux's inotify framework. Some of my interesting recipes: {{{#!highlight sh # Print full path; pipe to sh that calls rsync inotifywait -mrq --format '%w%f' --exclude '.*\.swp.*' -e close_write -e delete -e create directory-to-watch \ while read file; do echo "rs ${file} caligula:remote/" done }}} {{{#!highlight sh # Print parent directory only inotifywait -mrq --format '%w' --exclude '.*\.swp.*' -e close_write -e delete -e create directory-to-watch }}} ---- CategoryCheatSheet