Skip to content

Instantly share code, notes, and snippets.

@danilogco
Created December 18, 2023 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilogco/52a27437a9c9350fd80fbc8c28c2205e to your computer and use it in GitHub Desktop.
Save danilogco/52a27437a9c9350fd80fbc8c28c2205e to your computer and use it in GitHub Desktop.
Crontab Clamav
* */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