RE: [Clamav-users] clamd PING

2005-07-26 Thread Matthew.van.Eerde
Gerard wrote:
 When I issue the command as root:
 
 clamd PING

That doesn't work.  PING is not a command-line argument.

If you telnet TO THE SOCKET [1], then write PING\n to the socket, you should 
receive PONG\n from the socket.

[1]Yes, on some systems you really can telnet to a socket.

-- 
Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com Software Engineer
perl -emap{y/a-z/l-za-k/;print}shift Jjhi pcdiwtg Ptga wprztg,
___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] clamd PING

2005-07-26 Thread Ronny Nussbaum
If you chose the LocalSocket method of communicating with clamd, you
ca use a very cool piece of software called socat to send commands to
clamd. You can read about it here: http://www.dest-unreach.org/socat/.

Read the instructions on how to compile it, and then do:

socat - /tmp/clamd COMMAND  (your path to clamd may be different)

Commands:
PING - should reply with a PONG. It tells you that clamd is alive.
RELOAD - reloads the database
SHUTDOWN - shuts down clamd
VERSION - shows you clamd's version.

-RoNNY

On 7/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Gerard wrote:
  When I issue the command as root:
 
  clamd PING
 
 That doesn't work.  PING is not a command-line argument.
 
 If you telnet TO THE SOCKET [1], then write PING\n to the socket, you 
 should receive PONG\n from the socket.
 
 [1]Yes, on some systems you really can telnet to a socket.
 
 --
 Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902
 Hispanic Business Inc./HireDiversity.com Software Engineer
 perl -emap{y/a-z/l-za-k/;print}shift Jjhi pcdiwtg Ptga wprztg,
 
 ___
 http://lurker.clamav.net/list/clamav-users.html
 
 

___
http://lurker.clamav.net/list/clamav-users.html