I wanted to execute the following shell script commands '.sh' from either c# or through command prompt (which I can further execute it via c#)
I usually use the following commands to execute my .sh file .
The commands I do it manually are
a) Open cygwin (which inturn calls C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -). This will open cygwin console
b) Go to the working directory where I need to execute the .sh file using
cd <dir in unix format>
c) execute the .sh script file
sh <path to my .sh file in unix format>
But, I would like to automate these steps using command line/ c# (i.e to execute without opening console/apps like mintty.exe or bash.exe)
Note : The examples provided in How do i start Mintty and run a script file? didnt help me since they just close after opening without executing my commands.