[clamav-users] How to get each file status when scan a ditrtectory using clamdscan

G.W. Haywood clamav at jubileegroup.co.uk
Tue Oct 4 13:14:12 EDT 2016


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.



More information about the clamav-users mailing list