Send E-Mail on File Change in monitored directory
问题 I want to send an e-mail notification to guys in our company if a file changed in their staff folder on the server. I have a script that works fine on sending an e-mail on every file change using inotifywait. What I would like to do is on multiple file uploads (lets say 10 jpg's are being uploaded to somebody's staff folder) to only send out one email. This script sends an email on every file change: inotifywait --recursive --exclude '.DS_Store' -e create -e moved_to -m /media/server/Staff