Skip to content

Instantly share code, notes, and snippets.

@bgahagan
Created December 4, 2011 00:34
Show Gist options
  • Save bgahagan/1428635 to your computer and use it in GitHub Desktop.
Save bgahagan/1428635 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment