> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Ralf Hildebrandt
> Sent: Tuesday, May 08, 2007 3:07 AM
> To: [email protected]
> Subject: Re: [Clamav-users] OT: Sanesecurity Sigs: Important News
>
> * Rick Cooper <[EMAIL PROTECTED]>:
>
> > I assume (again) that you meant clamscan --debug causes an
> issue? What does
> > it do exactly that causes an issue?
>
> The output looks like this:
>
> LibClamAV debug: Loading databases from /var/lib/clamav/
> LibClamAV debug: Loading databases from /var/lib/clamav//main.inc
>
> (it has a trainling slash)
> --
So if you add -m 1 to the grep command that would take care of that and,
oddly enough, it short circuits the entire thing down to less than a second
on locating the path
Clam_Db_Dir=`${clamscan} --debug $tmp_dir/test.file 2>&1 | grep -m 1 -i -e
'loading databases from.*clamav$'| sed "s/.*loading databases from //i"`
Works *very* quickly here.
I made some changes to it again this morning (the above) and modified the
MSRBL sections to use rsync instead of curl. I believe the sanesecurity sig
provider is checking at least one of the mirrors to see if they can add his
stuff to their rsync files, if that happens I will change that as well.
Although I should probably start from scratch since there is little left of
the original script anyway.
Rick
Rick
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html