Keywords: clamdoc

Next: LibClamAV Up: Output format Previous: clamscan Contents

### clamd

`clamd` uses a `clamscan` compatible output format:

    	zolw@localhost:~$ 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 continues scanning even if virus was already found.
Error messages are printed in the following format:

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