Ronny Nussbaum top posted and said:
> Thanks guys.
> I tried to do this on Fedora (telneting the socket as Noel suggested), and
> it doesn't work.
> I simply changed my clamd.conf so that clamd now works as a TCP socket
> instead.
> By default is port 3310 on 127.0.0.1 <http://127.0.0.1>, and then I simply
> Telnet it, and issued a PING:
>  # telnet localhost 3310
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1 <http://127.0.0.1>).
> Escape character is '^]'.
> PING
> PONG
> Connection closed by foreign host.
>  Thanks for all your help
>  -RoNNY

The ClamAV source distribution includes a contrib tree that contains some
perl code that allows you to connect to a Unix socket (or a tcp socket).
With a little bit of coding it would be easy to re-use that to create an
interactive CLI for your daemon. My testing in Solaris show improvements
in performance when running with Unix sockets vs tcp sockets.

dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to