Skip to content

Instantly share code, notes, and snippets.

@bgahagan
bgahagan / inotify.sh
Created December 4, 2011 00:34
inotify-tools example
#!/bin/bash
while true; do
echo "Waiting for file changes"
inotifywait -rq --format '%T %w %f' -e close_write "path/to/files"
echo "Files were changed"
done