On Mon, 24 Apr 2006, Steve Basford wrote:

> Could anyone come up with some good wget/curl scripts, with wget, I guess it's
> using the -N option to only download changes and only download hourly (eg.
> 15:00, 16:00, 17:15, 18:15) etc.

I use the following bit of perl.  If you have access to your own DNS records 
I could modify it to check a DNS entry, as freshclam does, so even the HEAD 
isn't done unless the DNS entry changes.

#!/usr/local/bin/perl

use LWP::Simple qw(mirror $ua);

$| = 1;

$ua->timeout(60);
my $url = 'http://www.sanesecurity.com/clamav/phish.ndb';
my $file = 'phish.ndb';

my $result = mirror($url, $file);
print "$file\t$result\n";

exit 0;

#----- Cut here ----

==========================================================
Chris Candreva  -- [EMAIL PROTECTED] -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to