I have a list of files that I have written to a file and I would like
clamscan to read the list from that file and scan only the files in the
list. Is there a good way to do this?
I have tried
cat filelist | xargs clamscan
This works, except that xarg can only pass about 200 filenames to
clamscan at a time. So for a filelist containing 1000 filenames
clamscan will be started 5 times, creating extra overhead.
What I am actually trying to do is have clamscan only scan files that
are new or have not changed since the last scan. I have gotten as far
as creating a filelist containing a list of files that are new or where
the md5sum has changed. The problem I have now is how to get that
information to clamscan efficiently.
--
Chris
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html