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

Lipin, Adam Adam.Lipin@morganstanley.com
Mon Apr 12 22:05:00 GMT 2004


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/



More information about the Cygwin mailing list