You are not logged in.

#1 2014-02-21 15:14:11

CH2IS
Member
From: Wales
Registered: 2013-08-01
Posts: 18

[SOLVED] Msmtp times out waiting for clamav cron job to complete

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.com

The 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

#2 2014-02-21 15:31:14

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Msmtp times out waiting for clamav cron job to complete

Why don't you create the log and send it later?

Offline

#3 2014-02-21 16:12:20

CH2IS
Member
From: Wales
Registered: 2013-08-01
Posts: 18

Re: [SOLVED] Msmtp times out waiting for clamav cron job to complete

Awebb wrote:

Why don't you create the log and send it later?

A good call and a simple solution. Problem solved, thanks.

Offline

Board footer

Powered by FluxBB