Blog (or) Scribble Pad

Running .sh files on windows using Cygwin

Never heard of Cygwin before? No probs, just download the Cygwin installer and run it. Once the Cygwin is installed open the Cygwin terminal. Now just using the path of sh.exe located in 'C:\cygwinXX\bin\sh.exe' and the path of your .sh file you could simply run the file using the command:

c:/cygwin64/bin/sh.exe C:/wamp/www/SMIP_Install_v1_1/install.sh

It will run your .sh file. Note: just check the '/' you use in the path. Don't use '\' but '/' (not windows but UNIX).