Q concerning cygwin/perl/network

Gerrit P. Haase gerrit.haase@t-online.de
Wed Jun 13 00:12:00 GMT 2001

Jonadab the Unsightly One schrieb am 2001-06-12, 20:35:

> > require Net::Ping;
> > $host = '';
> > $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)?



Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list