delorie.com/archives/browse.cgi | search |
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 |
Date: | Tue, 23 Jul 2002 13:47:17 -0700 (Pacific Daylight Time) |
From: | Michael A Chase <mchase AT ix DOT netcom DOT com> |
Subject: | Re: lauching a perl script from a .bat |
To: | Jeremy Hetzler <jeremyhetzler AT earthlink DOT net>, |
Marko Loparic <marko_loparic AT yahoo DOT com> | |
cc: | cygwin AT cygwin DOT com |
Message-ID: | <Mahogany-0.64.2-2764-20020723-134717.00@MCHASE-COMPAQ> |
MIME-Version: | 1.0 |
Message-ID: | <Mahogany-0.64.2-2764-20020723-134715.00@MCHASE-COMPAQ> |
References: | <5 DOT 1 DOT 1 DOT 5 DOT 2 DOT 20020723015235 DOT 00a6b810 AT mail DOT earthlink DOT net> |
In-Reply-To: | <5.1.1.5.2.20020723015235.00a6b810@mail.earthlink.net> |
Reply-To: | Michael A Chase <mchase AT ix DOT netcom DOT com> |
On Tue, 23 Jul 2002 02:01:41 -0700 Jeremy Hetzler <jeremyhetzler AT earthlink DOT net> wrote: > 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). Also, both cygwin programs and perl scripts can handle windows type paths in their arguments if you replace '\' with '/' (e.g., c:/dir/dir/file). -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |