At 09:40 AM 6/8/2007, Efren Bravo wrote:
>Hi,
>
>I've this inside the freshclam.conf:
>---------------------------------
># Run command after successful database update.
># Default: disabled
>OnUpdateExecute /usr/local/etc/freshclam-x/onupdt.sh
>
>and /usr/local/etc/freshclam-x/onupdt.sh have:
>----------------------------------------------
>/usr/local/bin/sigtool -i /var/db/clamav/daily.cvd | mail -s "Antivirus Updt
>OK" [EMAIL PROTECTED]
>
>As I updated ClamAV from 88.x to latest version the file daily.cvd doesn't
>exist anymore, therefore the OnUpdateExecute command doesn't work.
>
>Now, how can I get the information of the daily DB?


You can use:
echo "clamav database updated" | mail -s "Clamav Update OK" 
[EMAIL PROTECTED]

or for more info, maybe:
clamscan /etc/motd | mail -s "clamav update OK" [EMAIL PROTECTED]

-- 
Noel Jones 

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to