On Tue, 27 Jan 2004 15:23:56 -0800 (PST)
Ryan Finnie <[EMAIL PROTECTED]> wrote:

> find /path -ctime -1 -exec clamscan \{\} \;
> 
> but that invokes clamscan for EVERY matching file found.  Instead, I
> would like to request that a new flag, say -f, be added to
> clamscan/clamdscan that takes a list of files, one file per line, from
> a file (-f file) or stdin (-f -).  That way you could do:
> 
> find /path -ctime -1 | clamscan -i -f -
> 
> or:
> 
> find /path -ctime -1 > /tmp/toscan
> clamscan -i -f /tmp/toscan
> 
> and put it in a nightly cron job.  What do you think?

You can use the CVS version - clamscan supports multiple file arguments
from command line, and build a script that executes clamscan on a bunch
of files. You can fall into a problem with special characters and
spaces, though.

Best regards,
Tomasz Kojm
-- 
      oo    .....       [EMAIL PROTECTED]         www.ClamAV.net
     (\/)\.........     http://www.clamav.net/gpg/tkojm.gpg
        \..........._   0DCA5A08407D5288279DB43454822DC8985A444B
          //\   /\      Wed Jan 28 08:17:06 CET 2004

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to