This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Q concerning cygwin/perl/network
- To: cygwin at cygwin dot com
- Subject: Q concerning cygwin/perl/network
- From: sargon <sargon at active dot ch>
- Date: Mon, 11 Jun 2001 18:11:11 +0200
Hi
I'm running the latest distribution of cygwin and perl (5.6.1-1)
under Windows 2000. I have problems to make the simplest perl-
scripts to run as soon as they involve the network. The following
program should ping the localhost and is tested under Solaris. Under
cygwin, the ping fails. Any ideas? Comments? Shrieking epitaphs? :)
Regards,
Sargon
#!/usr/bin/perl
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();
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple