Noel Jones wrote:
At 09:42 AM 9/8/2006, mcd wrote:
This is an interesting approach, but let me explain a little more. I will be running md5sums for every file on a system. I will then compare that list of md5sums against a list of md5sums that are know to be virus free. The files that do not have valid md5sums in the database will then need to be scanned. In a lot of situations this list of files will be in the thousands. At this
point would I be better off calling clamscan to scan the entire disk, or
call clamscan 10,000+ times with unknown files? I hope I am making this
clear. Thanks for all of your help.

cat big.list.of.files | xargs clamscan

xargs is still limited by max line length, so this needs to be done with care. Perl can also be used in place of clamdscan to feed file names to clamd (which must be run as root). The advantage of Perl is it can iterate over an array and of course manage all the logging.

dp

dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to