Re: :Ping Cannot redirect output !

2003-03-31 Thread Scott R. Godin
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

Re: :Ping Cannot redirect output !

2003-03-30 Thread R. Joseph Newton
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

Re: :Ping Cannot redirect output !

2003-03-30 Thread Rob Dixon
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

Re: :Ping Cannot redirect output !

2003-03-30 Thread R. Joseph Newton
"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

Re: :Ping Cannot redirect output !

2003-03-30 Thread R. Joseph Newton
"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); >

Re: :Ping Cannot redirect output !

2003-03-30 Thread Scott R. Godin
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("

Re: :Ping Cannot redirect output !

2003-03-29 Thread R. Joseph Newton
"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");

RE: :Ping Cannot redirect output !

2003-03-28 Thread Bakken, Luke
> $!=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

Re: ping

2002-02-26 Thread Peter Scott
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]... > >

RE: ping

2002-02-26 Thread Timothy Johnson
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

Re: ping

2002-02-26 Thread Lanceo
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

Re: ping

2002-02-26 Thread Lanceo
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

RE: ping

2002-02-22 Thread Timothy Johnson
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

Re: ping

2002-02-22 Thread Peter Scott
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

Re: ping

2002-02-22 Thread Chris
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

Re: ping

2002-02-22 Thread Johan H
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 \"

Re: ping

2002-02-22 Thread insomniak
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:

Re: ping

2002-02-22 Thread Tanton Gibbs
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