How to execute .sh file on Windows?
I'm forced to work in a Windows environment and have found Cygwin to be the best shell environment available.
You can then create a .bat file to execute the script file
@echo off
C:
chdir C:\cygwin\bin
set CYGWIN=nodosfilewarning
start /B /wait bash --login -i myscript.sh
Mike
1 Like
If you have an Ultimate or Enterprise edition of Windows, it comes with built-in support for running Unix applications called the Subsystem for UNIX-based Applications (SUA).
Whether your .sh script on Windows will run or not depends on what the shell script is trying to do.