You can check the health of your system by emailing Clamav search results daily.
(One case) /root/clamscan.sh
#!/bin/bash
clamdscan --multiscan / | mail -s "Clamav scan result" -r "<Sender email address>" "<Destination email address>"
exit 0
(Run the above script every day at midnight)
# crontab -e
(Add the following)
0 0 * * * /root/clamscan.sh
Recommended Posts