On Fri, 2007-04-13 at 15:35 +0200, Walter Bürger wrote:

> # time clamscan (in an empty directory)
> ----------- SCAN SUMMARY -----------
> Known viruses: 108369
> Engine version: 0.90.1
> Scanned directories: 1
> Scanned files: 0
> Infected files: 0
> Data scanned: 0.00 MB
> Time: 18.512 sec (0 m 18 s)
> clamscan 17.26s user 0.69s system 96% cpu 18.652 total
> 
> This makes clamscan almost unusable.

You want to use clamd/clamdscan instead of calling clamscan all the
time. Just as Anton already pointed out in this thread, loading the
virus signatures takes a lot of time.

$ clamscan | egrep -i '(scanned|time)'
Scanned directories: 1
Scanned files: 0
Data scanned: 0.00 MB
Time: 10.460 sec (0 m 10 s)

$ clamdscan | egrep -i '(scanned|time)'
Time: 0.001 sec (0 m 0 s)

  guenther


-- 
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

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

Reply via email to