What does this script look like? Is it a bash script? If so, you may want to try sh <scriptfile>
in Cygwin. If this doesn't work, and it is a bash script, make sure you have sh.exe
. Type sh
and hit tab twice to check.
Another potential issue if it is a bash script is that you don't have something installed that Cygwin requires to run the script. Make sure all the commands the script is trying to run will work. If not, you may have to run the Cygwin installer and install whatever is needed to run the script.
Also, you may want to check permissions.
If the file has an exe
extension, it SHOULD work on Windows unless it was compiled for 64 bit architecture and you're running a 32 bit OS. Otherwise, you could be missing some .dll
files that the executable relies on.
Edit:
If this is the contents of your script:
echo START
/oper/file.exe
then it's likely you have the incorrect path. Cygwin paths typically start with /cygdrive/c/
in Windows. Go to where the file exists and type pwd
to get the correct path, then modify your script accordingly.