Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inotifywait -m /files/ -e create -e moved_to |
- while read path action file; do
- echo "The file '$file' appeared in directory '$path' via '$action'"
- echo "waiting 30s"
- sleep 30s
- # do something with the file
- sendEmail -o tls=yes -f my@email.it -t receive@email.it -s smtp.email.it:587 -xu my@email.it -xp mypassword -u "Scansione" -m "Invio scansione" -a /files/$file
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement