-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Nov 28, 2006 at 05:55:44PM -0300, René Bellora wrote:

>this could be circumvented with xargs:
>cd /tmp/clamscan
>find . -type f -print0 | xargs -0 clamscan

If clamscan is complaining about a too long commandline with *, then
this will give him the same error.

The problem with not using -print0 is that clamscan gets instatiated for
each file, and it will unpack and reload the virus database everytime
it's instantiated.  Not good for efficiency or load.

The only solutions as I see it when you get to long enough lists is:
1) write a script that generates the list and feeds it to clamscan in
batches of 100 or 1000 or whatever number you deem reasonable.
2) configure clamd to run as root and then use clamdscan instead of
clamscan (why root?  Because files are likely owned by several different
users).
- -- 
Regards...              Todd
Chris: grep 500 sendmail.mc 
undefine(`FAIL_MAIL_OVER_500_MILES')dnl
Chris: just in case ...
Linux kernel 2.6.17-5mdv   3 users,  load average: 0.04, 0.05, 0.00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFbLXpY2VBGxIDMLwRArkOAJ9ZDVWfGvJ+N02Gn+V8jcLIlZzNVgCfYE3F
bJQcrAdMw+k/h+WRdsRf678=
=9/YE
-----END PGP SIGNATURE-----
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to