Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-WebMail-UserID: sargon Date: Mon, 11 Jun 2001 18:11:11 +0200 From: sargon To: cygwin AT cygwin DOT com X-EXP32-SerialNo: 00002340 Subject: Q concerning cygwin/perl/network Message-ID: <3B0A8542@smtp.active.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.61 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