sagat has asked for the wisdom of the Perl Monks concerning the following question:
When I run this, I get no return, no matter what the host state. And this is directly from the Net::Ping docs.#!/usr/local/bin/perl -w use Net::Ping; $host = "138.238.227.90"; $p = Net::Ping->new(); print "$host is alive.\n" if $p->ping($host); $p->close();
Use of uninitialized value at /usr/lib/perl5/5.00503/i386-linux/Socket +.pm line 295. 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble with Net::Ping
by the_slycer (Chaplain) on Jan 31, 2001 at 21:57 UTC | |
by sagat (Novice) on Feb 01, 2001 at 00:55 UTC | |
|
Re: Trouble with Net::Ping
by isotope (Deacon) on Jan 31, 2001 at 22:09 UTC | |
|
Re: Trouble with Net::Ping
by Brother Joe (Acolyte) on Feb 01, 2001 at 04:16 UTC | |
by tye (Sage) on Feb 01, 2001 at 04:27 UTC | |
|
Re: Trouble with Net::Ping
by mr.nick (Chaplain) on Jan 31, 2001 at 22:07 UTC | |
|
Re: Trouble with Net::Ping
by Dragonfly (Priest) on Feb 01, 2001 at 06:28 UTC |