delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/26/22:12:51

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
Message-ID: <39F8E451.A320EFEB@ece.gatech.edu>
Date: Thu, 26 Oct 2000 22:11:29 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Dmitry Epstein <mitia AT northwestern DOT edu>
CC: cygwin AT sources DOT redhat DOT com
Subject: Re: Running Active Perl scripts in bash
References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20001026203036 DOT 00b0a990 AT casbah DOT it DOT northwestern DOT edu>

Here's a workaround:
http://cygutils.netpedia.net/unversioned/perl-contrib/#activestate

This stub executable was contributed by Geoff Hart. His announcement is
quoted below:

-------
In case anyone is interested in using Activestate's Perl distribution
with CYGWIN, I have made a small tool that seems to work. It's a
"perl.exe" executable, which translates the command line arguments from
Cygwin to Win32, then invokes the perl interpreter *directly* from the
Activestate .dll (I didn't want to spawn a subprocess).

Of course, this doesn't fix any file name translation *within* the
running script, so if you need that, this won't work. For example, if
your script accepts file names as input, those paths would need to be
Win32 valid. But it handles \ or / just fine.
-------

--Chuck


Dmitry Epstein wrote:
> 
> I know a similar question has been asked a while ago, but I thought perhaps
> there has been some development since then.
> 
> I have a problem running Active Perl scripts in bash shell.  I can run
> scripts if I specify the full path to the script (e.g.
> e:/cygwin/usr/local/bin/sw.pl), but not if I just type the name of the
> script (e.g. sw.pl).  Perl gives an error message, something like
> 
> Can't open script /usr/local/bin/sw.pl
> 
> For some reason, which I can't quite understand, I have no trouble running
> scripts in the current directory.
> 
> If I understand correctly, the problem is that bash gives Perl the path
> relative to cygnus mount, which, of course, Perl doesn't understand.  So,
> does anyone know of a work-around, other than installing a cygnus-friendly
> port of Perl?  I would really like to stay with Active Perl, as it is the
> best Windows port around.
> 
> Dmitry
> 
> Dmitry Epstein
> Northwestern University, Evanston, IL.  USA
> mitia AT northwestern DOT edu
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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