On Sun, 29 May 2005, Dennis Peterson wrote:
Timothy Omer said:
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.
Uhh, unless I'm missing something obvious, that would send an email
every 4 hours, usually with no message body, but containing one when
there were errors. Definitely NOT what is desired.
Or perhaps your mail command works differently than mine?
Damian Menscher
--
-=#| Physics Grad Student & SysAdmin @ U Illinois Urbana-Champaign |#=-
-=#| 488 LLP, 1110 W. Green St, Urbana, IL 61801 Ofc:(217)333-0038 |#=-
-=#| 4602 Beckman, VMIL/MS, Imaging Technology Group:(217)244-3074 |#=-
-=#| <[EMAIL PROTECTED]> www.uiuc.edu/~menscher/ Fax:(217)333-9819 |#=-
-=#| The above opinions are not necessarily those of my employers. |#=-
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html