Skip to content

Instantly share code, notes, and snippets.

@warmans
Created April 9, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warmans/d2b7e0577bc8aa87919a to your computer and use it in GitHub Desktop.
Save warmans/d2b7e0577bc8aa87919a to your computer and use it in GitHub Desktop.
Run command each time a file in a given dir changes
while true; do inotifywait -re modify [dirname] && echo "DO SOMETHING"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment