On Mon, 19 Jan 2004 08:46:36 -0600 Jim Ramsay <[EMAIL PROTECTED]> wrote:
> I was a bit confused when I first tried writing a script to connect to
>
> clamd 0.65 on a remote server and do scanning via the STREAM command:
>
> 1 - I expected to be able to do multiple commands per TCP session...
> for example:
Done (grab the latest version from CVS) - you can start a clamd session
with SESSION and finish it with END:
[EMAIL PROTECTED]:~$ telnet localhost 3310
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SESSION
VERSION
clamd / ClamAV version devel-20040108
SCAN /etc/passwd
/etc/passwd: OK
SCAN /etc/group
/etc/group: OK
PING
PONG
END
BYE
Connection closed by foreign host.
The only exception is the RELOAD command - due to the daemon
implementation it needs to close the session.
> 2 - The "QUIT" command is, in my opinion, badly documented in the
> clamd man page:
>
> QUIT Perform a clean exit.
>
> Maybe it should say:
>
> QUIT Perform a clean shutdown of the daemon.
The description will be fixed in the new version. In the CVS version
clamd may also be closed with SHUTDOWN.
> 3 - The "PING" command doesn't seem to be very useful in the light of
> each command running in its own TCP session. If I get a PONG back, I
It's generally useful in a multithreaded mode.
> Does anyone else here think those things should be changed? I think
Thanks for the discussion.
Best regards,
Tomasz Kojm
--
oo ..... [EMAIL PROTECTED] www.ClamAV.net
(\/)\......... http://www.clamav.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Tue Jan 20 11:08:45 CET 2004
pgp00000.pgp
Description: PGP signature
