The execution result:
Attachment:
bat1.gif [ 13.2 KiB | Viewed 7157 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:
batch_reference.7z [13.66 KiB]
Downloaded 797 times
Note: the *.sh should use UNIX format in encoding.
Reference article:
http://www.linuxquestions.org/questions ... in-594988/Code:
c:\cygwin\bin\bash myscript