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 Message-Id: <5.1.1.5.2.20020723015235.00a6b810@mail.earthlink.net> X-Sender: jeremyhetzler AT mail DOT earthlink DOT net Date: Tue, 23 Jul 2002 02:01:41 -0700 To: Marko Loparic , cygwin AT cygwin DOT com From: Jeremy Hetzler Subject: Re: lauching a perl script from a .bat Cc: cygwin AT cygwin DOT com In-Reply-To: <20020722172447.65884.qmail@web12903.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed At 10:24 AM 7/22/2002 -0700, Marko Loparic wrote: >Hello, > >I have developed a perl script to a remote user who >runs Windows. I would like to make an easy >installation >cd for him and to allow him to launch to script using >a .bat file. I have two basic questions. > >1) The perl script uses cygwin names like /cygdrive, >so I can't launch perl directly from a .bat file. I >suppose I have to launch cygwin's bash passing the >script as an argument. How do I do this? You can run this script fine from a .bat file. However, you will need to have Cygwin installed on the machine and adjust the path to include perl.exe and cygwin1.dll (i.e. /usr/bin). For this non-interactive use, bash need not and should not be involved. It is cygwin1.dll that provides the cygwin-style functionality to perl, not bash. Cygpath can convert windows paths to and from cygwin paths, but you shouldn't need it here (under cygwin perl, the script should work fine unmodified). -- 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/