This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Q concerning cygwin/perl/network



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]