Created
December 18, 2023 05:42
-
-
Save danilogco/52a27437a9c9350fd80fbc8c28c2205e to your computer and use it in GitHub Desktop.
Crontab Clamav
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* */6 * * * rm -rf /var/log/clamav/freshclam.log && freshclam >/dev/null 2>&1 | |
* */6 * * * clamscan -r -i / | grep FOUND >> /home/danilogco/virus-scan-reports/virus-scan-report-`date +"%d-%m-%Y"`.txt >/dev/null 2>&1 | |
# create the folder virus-scan-reports in your home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment