Created
August 9, 2014 14:44
-
-
Save TheNeuralBit/5b29004bd08cb23565d9 to your computer and use it in GitHub Desktop.
A simple script using inotify to execute a command whenever a file is modified
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
#! /bin/bash | |
while [ 1 ]; do | |
inotifywait ${2} | |
${1} ${2} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment