Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="US-ASCII" Subject: RE: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute? Date: Tue, 13 Apr 2004 10:43:50 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Lipin, Adam" To: "Buchbinder, Barry (NIH/NIAID)" , X-OriginalArrivalTime: 13 Apr 2004 14:43:51.0253 (UTC) FILETIME=[BC954850:01C42165] X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3DEiAFj001067 The problem isn't calling bash. I can call bash without a problem. The problem is that I call bash then it executes bash and gives me a prompt and then stops. It does not run any commands after executing bash. Whether I run bash.bat or bash.exe. Thanks again for your help. -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Buchbinder, Barry (NIH/NIAID) Sent: Tuesday, April 13, 2004 10:26 AM To: cygwin AT cygwin DOT com Subject: RE: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute? If "call bash" works, it implies that the "bash" that the batch file is calling is really "bash.bat". Do you have one of those in your path? If so, changing "bash" to "bash.exe" will also work, assuming that you do not need what is in "bash.bat". -----Original Message----- From: David McNeill Sent: Monday, April 12, 2004 9:35 PM To: cygwin AT cygwin DOT com Subject: FW: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute? You want CALL Call batch2.bat -----Original Message----- From: cygwin-owner AT cygwin DOT com On Behalf Of Matthew O. Persico Sent: Tuesday, 13 April 2004 1:17 p.m. To: cygwin AT cygwin DOT com Subject: Re: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute? On Mon, 12 Apr 2004 18:05:15 -0400, "Lipin, Adam" 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/ **** 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/