delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/12/18:05:37

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
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute?
Date: Mon, 12 Apr 2004 18:05:15 -0400
Message-ID: <E6292146029E2943934457D3F16DA44A383794@bkexch112.msdwis.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Lipin, Adam" <Adam DOT Lipin AT morganstanley DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 12 Apr 2004 22:05:16.0581 (UTC) FILETIME=[3CA7DD50:01C420DA]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3CM5WCa010497

Does anyone know how to invoke a bash process via a dos batch program so
commands after bash execute?

For example.
batch1.bat contains:

REM This is batch1.bat
batch2.bat test
exit


batch2.bat contains:

REM this is batch2.bat
echo %1
bash
echo %1
exit


The result set is:
test

I want it to be:
test
test


**** Important Notice to Recipients ****
It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley.
****************************************

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