> This is my line in /etc/crontab:
>
> 0 */4 * * * root /usr/local/bin/freshclam 2>/tmp/freshclam.txt; cat \
> /tmp/freshclam.txt | mail -s "Actualizacion Antivirus" jgalicia
>
> What it means: every four hours execute freshclam and send me an email
> with results.

Two comments:

First, do NOT do it *on* the hour.  Too many people doing that will kill
the mirrors.  Pick some random minute to do it instead.

Second, most sensible implementations of cron automatically email any
output to the owner of the crontab (ie, root).  So you are much better
off just giving the --quiet option to freshclam, and it will only annoy
you when there are problems, rather than all the time.  This assumes, of
course, that you are root, and that everyone who is root would want the
notifications.

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. |#=-


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to