Created
January 14, 2022 17:45
-
-
Save Ronald-TR/95e70d5195ff66298c3598c20678fe04 to your computer and use it in GitHub Desktop.
Run command when file 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
# sudo pacman -S inotify-tools | |
# chmod +x reload.sh | |
FILE=diagram.py | |
while inotifywait -e close_write $FILE; do python $FILE; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment