On Sun, 30 Mar 2003, R. Joseph Newton wrote:
> "Scott R. Godin" wrote:
>
> > I think it probably would be better to quote the entire parameter
> > > list for perl, but it did run fine once the call to the non-existent
> > > bind() function was commented out.
> >
> > non-existent? since when
Rob Dixon wrote:
> I am running with Net::Ping 2.02, which was the version that came with my
> Perl version 5.6.1. It doesn't appear to be dated, apart from a (c) 1996,
Curiouser and curiouser...
NAME
Net::Ping - check a remote host for reachability
$Id: Ping.pm,v 1.6 2002/06/19 15:23:48
R. Joseph Newton wrote:
> "Scott R. Godin" wrote:
> >
> > Without debating the possible usefulness of it when set improperly by
> > inexperienced coders, In Net::Ping 2.28 which I have installed here, and
> > which appears to be the most recent version available from CPAN, the bind()
> > call certa
"Scott R. Godin" wrote:
> On Sun, 30 Mar 2003, R. Joseph Newton wrote:
>
> > "Scott R. Godin" wrote:
> >
> > > I think it probably would be better to quote the entire parameter
> > > > list for perl, but it did run fine once the call to the non-existent
> > > > bind() function was commented
"Scott R. Godin" wrote:
> I think it probably would be better to quote the entire parameter
> > list for perl, but it did run fine once the call to the non-existent
> > bind() function was commented out.
>
> non-existent? since when?
>
> perldoc Net::Ping
>
>$p->bind($local_addr);
>
R. Joseph Newton wrote:
> "Bakken, Luke" wrote:
>
>> > $!=1;
>>
>> $! contains error text, if I remember correctly off the top of my head.
>>
>> Use $| = 1 instead for autoflush. This shouldn't cause redirect
>> problems, tho.
>>
>> > use Net::Ping;
>> > @host_array = ;
>> > $p = Net::Ping->new("
"Bakken, Luke" wrote:
> > $!=1;
>
> $! contains error text, if I remember correctly off the top of my head.
>
> Use $| = 1 instead for autoflush. This shouldn't cause redirect
> problems, tho.
>
> > use Net::Ping;
> > @host_array = ;
> > $p = Net::Ping->new("icmp");
> > $p->bind("192.168.2.211");
> $!=1;
$! contains error text, if I remember correctly off the top of my head.
Use $| = 1 instead for autoflush. This shouldn't cause redirect
problems, tho.
> use Net::Ping;
> @host_array = ;
> $p = Net::Ping->new("icmp");
> $p->bind("192.168.2.211"); # Specify source interface of pings
> fore
At 03:28 PM 2/26/02 +, Lanceo wrote:
>Thanks Peter, that worked great!
>
>If you use http:// in the host address the server cannot be found, though...
Then it's no longer a host name, is it?
>"Peter Scott" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
PROTECTED]
Subject: Re: ping
What other methods?
I am trying to see if a server is alive and reachable. Often our servers
will respond to a ping, but IIS has fallen over or there is some problem
that stops pages from being served.
So right now I have two tools to use - Ping, and fetching a page from
What other methods?
I am trying to see if a server is alive and reachable. Often our servers
will respond to a ping, but IIS has fallen over or there is some problem
that stops pages from being served.
So right now I have two tools to use - Ping, and fetching a page from the
server and compari
Thanks Peter, that worked great!
If you use http:// in the host address the server cannot be found, though...
"Peter Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 09:19 AM 2/22/02 +, Lanceo wrote:
> >Hi,
> >
> >I am having difficulty getting th
I had the same problem at first, but I've found that if you want the
Net::Ping module to work on a Win32 platform, you might have better luck
sticking to the ICMP protocol (which is what your command-line ping is
using). Something like this usually works for me:
my $p = Net::Ping->new('icmp',2
At 09:19 AM 2/22/02 +, Lanceo wrote:
>Hi,
>
>I am having difficulty getting the Net::Ping module to work properly. I am
>using ActivePerl 5.6.1.631 on a win32 platform. I can ping a server in a
>dos prompt ok, but when I try to get the Perl Net::Ping to work it always
>returns a failure. It
Lanceo wrote:
> Hi,
>
> I am having difficulty getting the Net::Ping module to work properly. I am
> using ActivePerl 5.6.1.631 on a win32 platform. I can ping a server in a
> dos prompt ok, but when I try to get the Perl Net::Ping to work it always
> returns a failure. It seems to ponder over
On Fri, 2002-02-22 at 15:18, insomniak wrote:
> Hi
> If you are looking to find out is a host is alive try this bit of code.
>
> $host = www.google.com;
> $ip=join ".",unpack("C4",(gethostbyname($host))[4]);
>
> $ip will be empty if host is dead
>
> from command line
>
> perl -e "print join \"
gethostbyname(@ARGV[0]))[4]);"
www.google.com
hope this helps
Regards
Mark
- Original Message -
From: "Tanton Gibbs" <[EMAIL PROTECTED]>
To: "Lanceo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 10:27 AM
Subject: Re:
The problem is that your web page needs to be specified as
http://www.google.com You left off the http://
However, when I tried to run this using activestate 5.6.1.631 on Windows 98,
I got an error saying that alarm was Unimplemented. I had to change to udp
to get rid of that error. Does anyon
18 matches
Mail list logo