Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Anti-Virus Signature Updates

by linebacker (Scribe)
on Jul 08, 2002 at 21:41 UTC ( #180335=note: print w/replies, xml ) Need Help??


in reply to Re: Anti-Virus Signature Updates
in thread Anti-Virus Signature Updates

This is great, and really helpful with the hash slice info.

Unfortunately, your version of the script does not appear to compare the file (lastupdate.txt) with the listing on the ftp server. In other words, the program downloads all the files ending in x86.exe and appends the names of the files to the lastupdate.txt file. So...the net gain so far is nada.

I really appreciate your time. Thanks very much!

-Mike

Replies are listed 'Best First'.
Re: Re: Re: Anti-Virus Signature Updates
by rincew (Novice) on Jul 09, 2002 at 08:32 UTC
    This is strange - I just tested it once again using dummy data and it works for me. Note that the comparison used to determine whether a given file has already been downloaded is (case sensitive) string equality, so preparing lastupdate.txt by hand is likely to fail - it shouldn't ignore the files it added itself though. If this is a problem, you might want to add some kind of canonicalisation step like
    chomp( @lupd = map lc, <LASTUPDATE> ); ... next if $haveit{ lc $file }
    to ignore case.

    In any case, I'd recommend you to step it through with the debugger, checking the exact contents of the data structures at any time. This should give enough information to get things working.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2019-10-16 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?