delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/17/14:52:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 17 Mar 2004 14:51:59 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Martin Gainty <mgainty AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Question on Perl (.pl) association
In-Reply-To: <Law10-OE26c0zSwHUAw00002ea2@hotmail.com>
Message-ID: <Pine.GSO.4.56.0403171445210.25803@slinky.cs.nyu.edu>
References: <d47g505k7514fdbq6kkf2rdkomou14q38n AT 4ax DOT com> <j80h509t9tmal5m1iir11n8n3106jvb159 AT 4ax DOT com> <Law10-OE26c0zSwHUAw00002ea2 AT hotmail DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Martin,

David was giving an *example* of a solution that worked for him.  FWICS,
he has specific restrictions on what he can do with perl scripts.

Again, since you have no such restrictions, simply change the '#!' line at
the top of your .pl files to '#!/usr/bin/perl -w' (or add it at the very
top if it isn't there).  This should be enough to allow you to invoke .pl
files (or any other files, for that matter) from Cygwin shells using perl
(after appropriately 'chmod +x'ing them, of course).  This answer has been
given in at least 3 forms so far -- why are we still having this discussion?
	Igor

On Wed, 17 Mar 2004, Martin Gainty wrote:

> Hello David
> I do not have tipftp.pl on my box although I found this from Allen Gordon
> http://snallen.lsu.edu/lib/doc/commands/armstrong_tftp_server.shtml
> Vim editor is not yet installed..although I would be open to specific
> suggestions on how to accomplish the associative task with these utilities.
> I was thinking that the only other way to acomplish this is to install a
> preprocessor for command line input to sniff for .pl extension which would
> invoke cygwin perl passing the argument with .pl extension along as an
> argument.
> There has to be an easier way.
> Thanks,
> Martin
>
> ----- Original Message -----
> From: "zzapper" <david<at>tvis<dot>co<dot>uk>
> To: <cygwin<at>cygwin<dot>com>
> Sent: Wednesday, March 17, 2004 11:50 AM
> Subject: Re: Question on Perl (.pl) association
>
> > Hi,
> > Currently I'm getting round this by writing a simple wrap for my perl
> > scripts. I use ActiveState Perl for historical reasons.
> >
> > eg
> >
> > #!/bin/bash
> > # tipftp
> > # description :Wrap for tipftp.pl
> > c:/usr/local/bin/perl c:/cygwin/usr/local/bin/tipftp.pl
> >
> > zzapper (vim, cygwin, wiki & zsh)

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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