Andes Workshop http://forum.andestech.com/ |
|
How to run a BASH script in a Batch file (with Cygwin) http://forum.andestech.com/viewtopic.php?f=23&t=729 |
Page 1 of 1 |
Author: | cindy [ Mon Aug 12, 2013 5:59 pm ] |
Post subject: | How to run a BASH script in a Batch file (with Cygwin) |
The execution result: Attachment: bat1.gif [ 13.2 KiB | Viewed 6986 times ] cindy_test_bat.bat Code: E:\Andestech\AndeSight201MCU\cygwin\bin\bash E:\Andestech\AndeSight201MCU\cygwin\bin\cindy_test.sh pause cindy_test.sh Code: #!/bin/bash cd /cygdrive/e/Andestech/AndeSight201MCU/mcu/workspace2/hello/Debug PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/bin:/cygdrive/e/Andestech/AndeSight201MCU/toolchains/nds32le-elf-mculib-v3m/bin export PATH make all echo -e "Complete! \a \n" Reference file: Attachment: Note: the *.sh should use UNIX format in encoding. Reference article: http://www.linuxquestions.org/questions ... in-594988/ Code: c:\cygwin\bin\bash myscript
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |