Mailing List Archive

Scanned files count
Hi,

Is there a way to get the count of scanned files for a "SCAN folder"
command?

I'm using clamd and a socket connection, but I don't receive a "OK file"
scanned (only errores are received over socket while scanning) which seems
to be the standard way clamd manages the socket connection.

I'm reading the log file to count these files, but I'm not happy with this
workaround.
STATS command does not give me this number nor a way to calculate them.

Thank you,

Jorge
Re: Scanned files count [ In reply to ]
Hi there,

On Sun, 27 Nov 2022, Jorge Elissalde via clamav-users wrote:

> Is there a way to get the count of scanned files for a "SCAN folder"
> command?

The question lacks context, but maybe something like this instead?

find /path/ -type f | xargs -I'{}' clamdscan '{}'

--

73,
Ged.
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat