| 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: | "Gerrit P. Haase" <gerrit DOT haase AT t-online DOT de> |
| Organization: | Esse keine toten Tiere |
| To: | cygwin AT cygwin DOT com |
| Date: | Wed, 13 Jun 2001 09:13:39 +0200 |
| MIME-Version: | 1.0 |
| Subject: | Re: Q concerning cygwin/perl/network |
| Reply-to: | gerrit DOT haase AT t-online DOT de |
| Message-ID: | <3B272EC3.10169.77DE8D3@localhost> |
| In-reply-to: | <3B267D0A.5373.4A4D02@localhost> |
| References: | <3B0A8542 AT smtp DOT active DOT ch> |
| X-mailer: | Pegasus Mail for Win32 (v3.12cDE) |
Jonadab the Unsightly One schrieb am 2001-06-12, 20:35:
>
> > 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?
Well Net::Ping is working for me, so it shouldn't be
a problem with the module or cygwin.
Do you have a valid SERVICES file for windows/cygwin?
Do you run inetd?
Is the echo-port then served by it (I don't know)?
gph
--
=^..^=
--
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 |