Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Mon, 29 Dec 2003 12:06:26 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: kenneth DOT shaffer AT sciatl DOT com cc: cygwin AT cygwin DOT com Subject: Re: Executing Perl scripts w/o the .pl In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 29 Dec 2003, Shaffer, Kenneth wrote: > If using Active Perl with cygwin, put the following as the first line of > your perl scripts: > > eval 'exec perl -S `cygpath -w $0`' if 0; > -- > Ken Shaffer ...or put the following in your /usr/local/bin: -------------- BEGIN /usr/local/bin/wrap -------------- #!/bin/sh pname="$1" fname="`cygpath -w "$2"`" shift 2 && exec "$pname" "$fname" "$@" --------------- END /usr/local/bin/wrap --------------- and change the #! line of the perl script to #!/usr/local/bin/wrap /cygdrive/c/ActivePerl/bin/perl This should work even if you have Cygwin perl installed as well. Igor -- 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/