Watchful11

Untitled

Dec 27th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. while true; do
  2. rawchange=$(inotifywait -rq -e close_write,create --format "%w%f %e" /home/ftp)
  3. if [[ ! $rawchange == *"log.txt"* && $rawchange == *"CLOSE" ]]; then
  4. change=$(echo $rawchange | cut -d' ' -f 1)
  5. echo $change
  6. ./push.pyp $change &
  7. fi
  8. done
Advertisement
Add Comment
Please, Sign In to add comment