Hi, I created a simple shell script to test clamav and the output to stdout / stderr includes an 'OK' message which is missing from the '-l scan.txt' file.
www:/tmp# cat /usr/local/bin/test-clamav.sh #!/bin/sh ( clamscan -r -v -l /tmp/scan.txt /usr/share/clamav-testfiles & ) > /tmp/`basename $0`.out 2>&1 & www:/tmp# diff test-clamav.sh.out scan.txt 0a1,3 > > ------------------------------------------------------------------------------- > 4d6 < /usr/share/clamav-testfiles/debugm.c: OK www:/tmp# Kind Regards AndrewM Andrew McGlashan Broadband Solutions now including VoIP Current Fixed Line No: 03 8705 0300 Mobile: 04 2574 1827 Fax: 03 8790 1224 National No: 1300 85 3804 Affinity Vision Australia Pty Ltd http://www.affinityvision.com.au http://adsl2choice.net In Case of Emergency -- http://www.affinityvision.com.au/ice.html _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
