Jay Lee wrote:
Dennis Peterson wrote:
Jay Lee wrote:
I am attempting to write a script that will take action whenever an
email from the [EMAIL PROTECTED] list is received.  The
script would run freshclam and grab the most recent update, thus giving
me the most up to date version at all times without putting a heavy load
on the ClamAV servers.



Why don't you just do something simple like:

dig TXT current.cvd.clamav.net

This returns the current released version of ClamAV, the current CVD file version numbers, and the date and time of the update.
The idea is to grab the update immediately once it is published. Checking the DNS record would have to be a cron job and thus would only run at a given time.


You can run it outside of cron too, and as often as you like - dns is a very light weight process. It also has the advantage of telling you that there's an update and that it is available to download. I don't know if the email message can tell you the mirrors are sync'd. Perhaps the email is not sent until all mirrors are sync'd in which case it can come a long time after the update has been released.

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

Reply via email to