Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <018201c23d9d$9b0f0d90$0100a8c0@wdg.uk.ibm.com>
From: "Max Bowsher" <maxb@ukf.net>
To: <cygwin@cygwin.com>
References: <E37E01957949D611A4C30008C7E691E29C1FBC@aples3.jhuapl.edu> <Mahogany-0.64.2-2456-20020806-101439.00@MCHASE-COMPAQ>
Subject: Re: Trouble running Perl script that require root privilege
Date: Wed, 7 Aug 2002 00:01:46 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Michael A Chase wrote:
> On Tue, 6 Aug 2002 12:43:13 -0400  "Humes, David  G."
> <David.Humes@jhuapl.edu> wrote:
>
>> Hello,
>>
>> Note:  This is NOT a Perl question.
>
> Actually it is a Perl module problem.  There should be a "and $^O ne
> 'cygwin'" next to the test for VMS in the croak line.  Because Cygwin
> runs on top of Windows, it isn't identical to UNIX and this is one of
> the places where you get bit by the difference.

Yes, the bug is in Net::Ping. There was a short thread about this in the last
month or so. The cleanest solution would probably be to try the ping, and then
report an access denied error with a descriptive message. This avoids the need
to know about every system type and how ping behaves.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

