delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-Id: | <1138366194.26586.252904125@webmail.messagingengine.com> |
From: | "Brett Serkez" <techie AT serkez DOT net> |
To: | "Herb Martin" <HerbM AT learnquick DOT com>, cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
References: | <EITR1QU-000FI4-H0 AT mail2 DOT learnquick DOT com> |
Subject: | RE: Calling shell script from DOS |
In-Reply-To: | <EITR1QU-000FI4-H0@mail2.learnquick.com> |
Date: | Fri, 27 Jan 2006 07:49:54 -0500 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> I have installed Cygwin. I want to invoke a shell > > script from the DOS/Windows command prompt (instead of opening > > Cygwin Window first and calling it from there). How can I do this? > > > > Thanks for any help. > > The following seems the naive way -- someone else may offer other > options: > > Make the shell (itself) the command and add the script as a > parameter... > > bash script-file-name > > Worked for me. Other command processors should work too. I name all of my bash scripts with a .sh extension, althought not necessary from Cygwin's point of view, it allows me to associate .sh files with c:\cygwin\bin\bash in Windows. I then customize the icon for this association with the Cygwin icon, and these files then show up with this icon in Explorer and I can simply double click to run. Brett ---------------------------------------------------------------- Brett C. Serkez, Techie -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |