delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/11/12:07:06

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
X-WebMail-UserID: sargon
Date: Mon, 11 Jun 2001 18:11:11 +0200
From: sargon <sargon AT active DOT ch>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019