Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. file=$1
  3. shift
  4.  
  5. let changed=0
  6.  
  7. while [[ $changed -eq 0 ]]; do
  8. inotifywait -e CLOSE_WRITE $file -qo /dev/null && changed=$?
  9. echo "update with: $@"
  10. $@
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement