[clamav-users] The number of scanned files by clamdscan

kmatsui at earth.kiramori.net kmatsui at earth.kiramori.net
Mon Jul 20 16:07:10 UTC 2015


As for the reason why I wanted to check the number of scanned files by  
clamdscan,
I just wanted to check that clamdscan the target directory recursivey.

$ find /tmp/dir1/ -type f
/tmp/dir1/eicar.txt
/tmp/dir1/dir2/eicar.txt
/tmp/dir1/dir2/dir3/eicar.txt
/tmp/dir1/dir2/dir3/dir4/eicar.txt
$ clamdscan -v /tmp/dir1/
/tmp/dir1/eicar.txt: Eicar-Test-Signature FOUND
/tmp/dir1/dir2/eicar.txt: Eicar-Test-Signature FOUND
/tmp/dir1/dir2/dir3/eicar.txt: Eicar-Test-Signature FOUND
/tmp/dir1/dir2/dir3/dir4/eicar.txt: Eicar-Test-Signature FOUND
----------- SCAN SUMMARY -----------
Infected files: 4
Time: 15.564 sec (0 m 15 s)

Probably there's no problem in this respecct.
I wonder why clamdscan doesn't display the number of scanned files  
diifferently from clamscan.
Are there the possibility that clamdscan will be amended in the future ?

---
Kenji Matsui


On 07/19/15 16:46, kmatsui at earth.kiramori.net wrote:
> I've installled ClamAV on debian jessie.
> I want to check the number of scanned files by clamdscan.
>
> $ find /tmp/folder1/ -type f
> /tmp/folder1/1.txt
> /tmp/folder1/folder2/3.txt
> /tmp/folder1/2.txt
>
> $ clamdscan -v /tmp/folder1/
> /tmp/folder1: OK
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.000 sec (0 m 0 s)
>
> The number of scanned files is unclear.
>
> $ clamdscan -v /tmp/folder1/*
> /tmp/folder1/1.txt: OK
> /tmp/folder1/2.txt: OK
> /tmp/folder1/folder2: OK
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.000 sec (0 m 0 s)
>
> This method doesn't scan /tmp/folder1/folder2/3.txt .
>
> $ find /tmp/folder1/ -type f | while read line ; do clamdscan -v  
> ${line} ; done
> /tmp/folder1/1.txt: OK
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.000 sec (0 m 0 s)
> /tmp/folder1/folder2/3.txt: OK
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.000 sec (0 m 0 s)
> /tmp/folder1/2.txt: OK
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.000 sec (0 m 0 s)
>
> This method is almost good.
> But besides,I want to make clamdscan display the results all at once  
> if possible.
> Are there any way to resolve ?
> Thanks.
>
> ---
> Kenji Matsui
>




More information about the clamav-users mailing list