Keywords: clamdoc

Next: LibClamAV Up: Output format Previous: clamscan Contents

### clamd

The output format of `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 FOUND

CONTSCAN and MULTISCAN don't stop scanning in case a virus is found.
Error messages are printed in the following format:

    	SCAN /no/such/file
    	/no/such/file: Can't stat() the file. ERROR