[Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Ian Abbott
On 28/11/2006 19:06, Chris Purves wrote: Ian Abbott wrote: On 27/11/2006 23:32, Chris Purves wrote: 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

[Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Virgo Pärna
On Tue, 28 Nov 2006 12:25:14 -0800, Dennis Peterson [EMAIL PROTECTED] wrote: Chris Purves wrote: /tmp/clamscan/*' I get the following error: /usr/bin/clamscan: Argument list too long This sounds like the command line limit for the OS. The list is quite large at 5000 - for that it would

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Dennis Peterson
Virgo Pärna wrote: On Tue, 28 Nov 2006 12:25:14 -0800, Dennis Peterson [EMAIL PROTECTED] wrote: Chris Purves wrote: /tmp/clamscan/*' I get the following error: /usr/bin/clamscan: Argument list too long This sounds like the command line limit for the OS. The list is quite large at 5000 - for

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Bill Landry
Dennis Peterson wrote the following on 11/29/2006 7:23 AM -0800: Virgo Pärna wrote: On Tue, 28 Nov 2006 12:25:14 -0800, Dennis Peterson [EMAIL PROTECTED] wrote: Chris Purves wrote: /tmp/clamscan/*' I get the following error: /usr/bin/clamscan: Argument list too long This sounds like the

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Dennis Peterson
Bill Landry wrote: Dennis Peterson wrote the following on 11/29/2006 7:23 AM -0800: One other option was to run a second instance of clamd pointed to a different config file and run the second instance as root. Then clamdscan should be able to scan all files in all directories without

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Tomasz Papszun
On Wed, 29 Nov 2006 at 12:37:35 -0800, Dennis Peterson wrote: Bill Landry wrote: Dennis Peterson wrote the following on 11/29/2006 7:23 AM -0800: One other option was to run a second instance of clamd pointed to a different config file and run the second instance as root. Then clamdscan

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-29 Thread Dennis Peterson
Tomasz Papszun wrote: [ clamdscan _did_ find the infected file! Because: ] $ grep -i sym /etc/clamav/clamd.conf FollowFileSymlinks So I believe (I haven't verified that empirically) that after creating in a directory of choice, symlinks to files to scan, there should be no need to split

[Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-28 Thread Ian Abbott
On 27/11/2006 23:32, Chris Purves wrote: 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

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-28 Thread Chuck Swiger
On Nov 28, 2006, at 3:13 AM, Ian Abbott wrote: You'll also find that it fails for file names containing whitespace, quote marks, or backslashes. To work around that, you could use tr '\n' '\0' filelist | xargs -0 clamscan or generate the filelist with null-separated filenames in the

Re: [Clamav-users] Re: How to run clamscan for a list of files from a file?

2006-11-28 Thread Chris Purves
Ian Abbott wrote: On 27/11/2006 23:32, Chris Purves wrote: 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