Created
April 9, 2015 21:58
-
-
Save warmans/d2b7e0577bc8aa87919a to your computer and use it in GitHub Desktop.
Run command each time a file in a given dir changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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