delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Jonadab the Unsightly One" <jonadab AT bright DOT net> |
Organization: | There is no organisation. |
To: | cygwin AT cygwin DOT com |
Date: | Tue, 12 Jun 2001 20:35:22 -0400 |
MIME-Version: | 1.0 |
Subject: | Re: Q concerning cygwin/perl/network |
Reply-to: | jonadab AT bright DOT net |
Message-ID: | <3B267D0A.5373.4A4D02@localhost> |
In-reply-to: | <3B0A8542@smtp.active.ch> |
X-Eric-Conspiracy: | My name is not Eric. |
X-Platform: | Windows '95 OSR2 (heavily adjusted and customised) |
X-mailer: | Pegasus Mail for Win32 (v3.12) |
> require Net::Ping; > $host = '127.0.0.1'; > $p = Net::Ping->new(); > if($p->ping($host)) > { print "$host is alive.\n"; } > else { print "$host is not alive.\n"; } > $p->close(); > should ping the localhost and is tested under Solaris. Under > cygwin, the ping fails. Any ideas? Comments? Shrieking epitaphs? I tried it here, and it failed. So I tried it in ActivePerl, and it failed there too -- despite that I've run numerous network scripts in ActivePerl and they do fine. For example, I can use Net::ftp and Net::UserAgent, but when I tried the above, I always get the "is not alive" message. The ping.exe that comes with windows of reports 0% packet loss. This makes me wonder if it couldn't be a problem with Net::Ping specifically. Have you tried one of the other Net:: modules under cygwin? -- jonadab -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |