Created
May 22, 2019 21:30
-
-
Save jakkaj/98826a3869dd9beda69be10557af8f7f to your computer and use it in GitHub Desktop.
Wait for bash script changes and act on them... in bash
This file contains hidden or 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
#from https://github.com/rvoicilas/inotify-tools/wiki | |
apt-get install inotify-tools | |
inotifywait -r -m -e close_write ./spark.sh | | |
while read path _ file; do | |
echo "$path$file modified" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment