FTP upload notification mail script

You can get the mail alerts on ftp upload. Add these to a file named /root/check_upload. Chmod /root/check_upload 700. Add the following cronjob to run everyday say 1 AM server time. It will send you a mail of what all files are uploaded on the current date.

* 1 * * * /root/check_upload



grep upload /var/log/messages | grep "`date | awk {'print $2" "$3'}`" > /root/upload ; cat /root/upload |mail -s "Ftp Uploads on `date`" email@domain.com