Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- file=$1
- shift
- let changed=0
- while [[ $changed -eq 0 ]]; do
- inotifywait -e CLOSE_WRITE $file -qo /dev/null && changed=$?
- echo "update with: $@"
- $@
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement