05-05-2019, 11:19 AM
It took a bit of tweaking but it now works. Here is the final script:
'%' symbols need to be escaped or they're interpreted as new lines.
Code:
0 18 * * SUN root rm -rf /var/log/clamav/freshclam.log
1 18 * * SUN root freshclam
22 18 * * SUN root clamscan -r -i / | grep FOUND >> /home/osamu/virus-scan-reports/virus-scan-report-`date +"\%d-\%m-\%Y"`.txt
'%' symbols need to be escaped or they're interpreted as new lines.