At 6:20 PM -0800 2/28/09, Bill Landry wrote:
>Bill Landry wrote:
>> Tom Shaw wrote:
>>> Some issues:
>>>
>>> socat ran fine on 0.94.2 but on 0.95.rc1
>>>
>>> echo PING|socat - /var/tmp/clamd.socket
>>>
>>> is silent yet I can type
>>
>> Tom, are you sure that is the correct path to your clamd.socket? Just
>> curious, because socat if working and responding with PONG fine for me
>> when I PING my clamd.socket with 0.95.rc1:
>>
>> clamscan -V
>> ClamAV 0.95rc1/9047/Wed Feb 25 02:59:41 2009
>>
>> echo PING | socat - /var/amavis/clamd.sock
>> PONG
>
>Works with perl too:
>
>perl -MIO::Socket::UNIX -we '$s = IO::Socket::UNIX->new(shift);
>$s->print("PING"); print $s->getline; $s->close' /var/amavis/clamd.sock
>PONG
Now I am even more confused. Perl works for me also:
$ perl -MIO::Socket::UNIX -we '$s = IO::Socket::UNIX->new(shift);
$s->print("PING"); print $s->getline; $s->close' /var/tmp/clamd.socket
PONG
and like I said socat works when I type on the terminal:
$ socat - /var/tmp/clamd.socket
PING
PONG
--
Tom Shaw - Chief Engineer, OITC
<[email protected]>, http://www.oitc.com/ local wx: http://www.oitc.com/weather
US Phone Numbers: 321-984-3714, 321-729-6258(fax),
321-258-2475(cell/voice mail,pager)
Text Paging: http://www.oitc.com/Pager/sendmessage.html
AIM/iChat: [email protected]
Fish more and Live longer
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml