Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true; do
- rawchange=$(inotifywait -rq -e close_write,create --format "%w%f %e" /home/ftp)
- if [[ ! $rawchange == *"log.txt"* && $rawchange == *"CLOSE" ]]; then
- change=$(echo $rawchange | cut -d' ' -f 1)
- echo $change
- ./push.pyp $change &
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment