On Mon, 2 Apr 2001, K Old wrote:

> Hello all,
> 
> I'm writing a Perl script that will ping all of the IPs that are setup on my 
> server and print if they are active or not.  I'm using the following code:
> 
> use Net::Ping;
> 
> $p = Net::Ping->new();
> $p->ping($ipaddress);
> 
> This should be working, but is not returning a 1 or 0, only a undef.  The 
> address(es) I'm pinging are on the machine that is sending the 
> request...does this have something to do with why this isn't working?
> 
> Any ideas on how I can do this?

beats me. On all the system I tried, It couldn't even get this to run
(even though other networking perl stuff works fine)

[cgalpin@pooh perl]$ ./ping.pl
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.


charles



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to