Thank you for your answer.
Trying to be more forthcoming I can explain the code I'm making.

- I get the full list of files under c:\windows\system32 folder, just files, not folders (4913 files in my case).
- I send every file name to clamd using the SCAN command.

The whole process takes almost 5 minutes, and I'm trying to drastically reduce that time.
The problems I have are:

- I cannot use MULTISCAN command, if I send the command MULTISCAN c:\windows\system32 everything will be scanned including folders.
- I cannot use MULTISCAN command under a clamd session, clamd does not allow it (with this option I could send every filename using MULTISCAN command under a session)
- SCAN is not multithread and this is the reason for the 5 required minutes

Possible solutions are:

- Non recursive MULTISCAN ( seems that this is not available )
- Multithread SCAN command ( seems that is not available )

Is there another solution here?
Thank you very much!






El vie, 4 mar 2022 a las 15:53, G.W. Haywood via clamav-users (<clamav-users@lists.clamav.net>) escribió:
Hi there,

On Fri, 4 Mar 2022, Jorge Elissalde via clamav-users wrote:

> ...
> If I send the command "MULTISCAN c:\windows\system32", the recursive
> scanning will scan everything including folders, which is not what I want.
>
> This scanning must be processed using multi threads ...

Can you be more forthcoming about your requirements?

> Is there a way to perform a non recursive MULTISCAN, or is there a
> way to perform a multithread SCAN command?

To do exactly what you want I think you'll need to create your own
scanning daemon using libclamav to do the actual scanning:

.../docs/html/UserManual/libclamav.html

But before diving into something like that I would suggest first of
all that you make sure the scanner will perform as you expect.

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml