delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/20/18:03:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 20 Apr 1999 19:01:13 -0400 (EDT)
From: Nancy McGough <nm AT NoAdsPlease DOT ii DOT com>
Subject: running Cygwin shell scripts from a bat file (Was: precompiled perl?)
In-reply-to: <006c01be8b7e$ac5d7a20$d9684fa2@jhudd.colostate.edu>
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Cc: John Huddleston <jhudd AT cody DOT itc DOT nrcs DOT usda DOT gov>
Message-id: <Pine.WNT.4.10.9904201856200.-309891@aleph>
Organization: Infinite Ink - mirrored at www.ii.com and www.best.com/~ii/
MIME-version: 1.0
X-X-Sender: ii AT shell13 DOT ba DOT best DOT com

On 20 Apr 1999, John Huddleston <jhudd AT cody DOT itc DOT nrcs DOT usda DOT gov> wrote:
> the contents of a myfile.bat file is
> 
> perl -S myfile %1
> 
> where myfile is a file containing perl code

Thank you -- that did the trick!

What about plain old shell scripts that use a bunch of regular Unix
commands (cp, mv, grep, cut, sed, etc.) -- can these be run from a DOS
box or from a bat file? Again the reason I want to be able to do this
is so I can use Windows Explorer and the Send To pop-up menu to send a 
file a Unix script.

Thanks again,
Nancy

-- 
©Nancy McGough          http://www.ii.com          Infinite Ink
--= Sent via PINE: Power Internet News & Email for Win/Unix =--


--
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