delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/27/06:46:42

X-Spam-Check-By: sourceware.org
From: "Herb Martin" <HerbM AT learnquick DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Calling shell script from DOS
Date: Fri, 27 Jan 2006 05:39:37 -0600
MIME-Version: 1.0
In-Reply-To: <20060127062253.97104.qmail@web50102.mail.yahoo.com>
Message-ID: <EITR1QU-000FI4-H0@mail2.learnquick.com>
X-Sign-LQC: HerbM AT learnquick DOT com/2006-01-27 05:39:58/<cygwin AT cygwin DOT com>=slotsvco
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.

--
Herb Martin


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019