www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/12/21:16:56

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
From: "Matthew O. Persico" <matthew DOT persico AT verizon DOT net>
To: <cygwin AT cygwin DOT com>
Date: Mon, 12 Apr 2004 21:16:48 -0400
Message-ID: <2004412211648.738164@mopxp>
Subject: Re: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute?
Mime-Version: 1.0
X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [162.84.129.177] at Mon, 12 Apr 2004 20:16:33 -0500
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3D1GsAb021581

On Mon, 12 Apr 2004 18:05:15 -0400, "Lipin, Adam" <Adam DOT Lipin AT morganstanley DOT com>said:
> Does anyone know how to invoke a bash process via a dos batch
> program so
> commands after bash execute?

'bash' is a red herring in this case. Try this:

batch1.bat:
REM This is batch1.bat
batch2.bat test
echo back from batch2.bat
exit

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


When I execute batch1.bat in a DOS window, I never get the echo back from batch2.bat. Notice I removed the exit from batch2.bat. Methinks that invoking batch2.bat replaces the current process (in UNIX speak) so that the rest of batch1.bat is never executed.

And now that I have shown this thread to have no Cygwin content whatsoever, I think it is time to end it. Or else, we're flame-bait for sure.

--
Matthew



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