[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Problems with Net::Ping



Hi there,

I just installed Net::Ping on a RaQ2 directly from CPAN and wrote a small script:

#!/usr/bin/perl
use Net::Ping;
$proto = "udp";
$timeout = 2;
$host = "www.insert-host-here.com";
$p = Net::Ping->new($proto);
print "$host is reachable\n" if $p->ping($host, $timeout);
$p->close();

But when I execute it, it always aborts with the following error:

"Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at
/usr/lib/perl5/5.00503/i386-linux/Socket.pm line 295."

On all other non-RaQ systems this seems to work fine. Any ideas? Is Socket.pm broken?

Thanks,
Jonas

____________________________________________
Jonas Pasche
Leitung Technischer Support

webagentur Domke GmbH

Rheinstr. 3 - 64283 Darmstadt - Germany

Telefon +49 6151 17742-33
Telefax +49 6151 293173

http://www.domke.de

mailto:jonas@xxxxxxxx
____________________________________________