This is a simple script that automates the process of scanning a specified directory and then sends an email of the results to a specified address. To automate this process even further the use of cron can be used so that the script will operate on a given schedule. By default the script is set to scan the home directory, send emails to and from firstname.lastname@example.org and store logs in "
/var/log/". The required packages for this script are sendmail & clamav.
The script can be found on github.
1.1 – Fixed a problem with sendmail.
1.0 – Initial release