clamd
is very similar to clamscan
.
$ telnet localhost 3310 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. SCAN /home/zolw/test /home/zolw/test/clam.exe: ClamAV-Test-File FOUND Connection closed by foreign host.In the SCAN mode it closes the connection when the first virus is found.
SCAN /home/zolw/test/clam.zip /home/zolw/test/clam.zip: ClamAV-Test-File FOUNDCONTSCAN and MULTISCAN don't stop scanning in case a virus is found.
SCAN /no/such/file /no/such/file: Can't stat() the file. ERROR