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

Thank you all for your help, MAILTO does seem to work. I will try the
suggestion above as I can add my own subject.

Not sure what 2>&1 does, is there any way I can create an error to test
this? (Obviously I can not disconnect the internet to create an update
error, as I would not receive the email :-) )

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

Reply via email to