Re: How to get each file status when scan a ditrtectory using clamdscan

crazy thinker <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user,gmane.comp.security.virus.clamav.devel
Message-ID <CAM2jGMPrX76FCH8jaEK_bCyPsxKrTxWEhzrGCubeUkHqhyLFZQ@mail.gmail.com>
@Haywood

I know that Clamd uses Multiscan mode when we perform scan over dirtectory
to do Parallel scanning using available threads.. but In the case of you
 suggested command  we only able to send  the file one by one to Clamd
server through clamdscan request.so we can't able to take the advantage of
multi-threading.so it increases overall scanning time





On 4 October 2016 at 23:02, crazy thinker <[email protected]> wrote:

> @Haywood
>
> Thanks for reply..i checked this command. it's working fine..but  I am
> planning to code changes in code base to achieve each call back file status
> when perform a scan over  dirtectory that conatins multiple
> subdirtectories.. could you please help me on this ..i think you have good
> understanding on clamav internals
>
> On 4 October 2016 at 22:44, G.W. Haywood <[email protected]>
> wrote:
>
>> Hi there,
>>
>> On Tue, 4 Oct 2016, crazy thinker wrote:
>>
>> when i  scanned  a dirtectory using clamdscan, i could get only error and
>>> virus file infected files status in output.but i would like to see each
>>> file status(including "OK" status also ) when i perform scan over sinle
>>> dirtectory / multiple dirtectories
>>>
>>> how does it can be achived? could anyone  please help me in this...
>>>
>>
>> /usr/bin/find /path/to/files -type f -name '*' | /usr/bin/xargs -I '{}'
>> /path/to/clamdscan '{}'
>>
>> --
>>
>> 73,
>> Ged.
>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/vrtadmin/clamav-faq
>>
>> http://www.clamav.net/contact.html#ml
>>
>
>
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.