Timothy Omer said:
> Hello everyone,
>
>
>
> I have been asking on the forms and trying to solve this problem for a few
> weeks now - I hope you can help me.
>
>
>
>>From cron I run freshclam every 4 hours with the following command.
>
>
>
> 15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "There has been an
> error updating ClamAV on the Office Server" [EMAIL PROTECTED] <
> /var/log/clamav/freshclam.log

use:
15 */4 * * */usr/local/bin/freshclam --quiet 2>&1 | mail -s "There has
been an error updating ClamAV on the Office Server" [EMAIL PROTECTED]

This should send stderr output to mail and will contain the error message.
There is no stdout to capture because of the --quiet parameter.

Simpler even than diddling with the MAILTO var.

dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to