I need to run a very complicated Bourne shell script under windows from a very complicated C++ Windows program. Of course, there is cygwin to emulate a linux environment, and there is system to place a call from C++ to start up cygwin.
But... how do I convince cygwin to run my script? I have no clue...
I need to pass the script's name to the bash.exe of Cygwin or so.
>>system("c://cygwin//bin//bash.exe < script.sh");
Who can help?
Thank you, kind regards, Matthijs.