[clamav-users] The number of scanned files by clamdscan
kmatsui at earth.kiramori.net
kmatsui at earth.kiramori.net
Sun Jul 19 08:46:49 UTC 2015
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