You are not logged in.
Hello,
I'm setting up a weekly cron job for clamscan which will email me the results. However, I've hit a bit of a stumbling block, namely that msmtp times out before the system scan finishes. Here's the command I'm using with cron:
freshclam --quiet; clamscan -r -i --stdout --infected --exclude-dir='^/sys|^/proc|^/dev|^/lib|^/bin|^/sbin' / 2>&1 | msmtp-wrapper my@email.comThe wiki mentions using chronic or sponge from the moreutils package to solve this problem with long cron jobs. It sounds a simple solution but I have read the man pages for both and I'm still struggling to get my head around exactly how to use either. Don't suppose anyone can help me out, can they?
Thanks,
Last edited by CH2IS (2014-02-21 16:12:43)
Offline
Why don't you create the log and send it later?
Offline
Why don't you create the log and send it later?
A good call and a simple solution. Problem solved, thanks.
Offline