On Fri, Jun 06, 2003 at 05:50:35PM -0300, Rodrigo Severo wrote: > I thought freshclam did clamd RELOAD the virus database upon completion. It does if you pass the --daemon-notify= argument right?
> As far as I can tell, it isn't. > > I decided to make a little program that would connect to clamd through > local socket and ask it to REALOD the virus database. > > I couldn't make it work either. Not even the PING command got a proper > answer. As far as I can tell my perl script it connecting to the socket > but I got no answers from it. Some suggestions? something like this should work... #!/usr/bin/perl -w use Socket; use strict; my $clamd = shift || '/tmp/clamd'; socket(SOCK, PF_UNIX, SOCK_STREAM, 0) || die "socket: $!\n"; connect(SOCK, sockaddr_un($clamd)) || die "connect: $!\n"; send(SOCK, "RELOAD", 6) || die "send: $!\n"; recv(SOCK, my $buf, 20, 6) || die "recv: $!\n"; ($buf eq "RELOADING\n") and print "Database successfully reloaded\n" or print "Error reloading database\n"; exit 0; > I tried to take a deeper look at clamav documentation but I spent all > day trying to get pages from the site without any success. -- Damien --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]