Background: I am trying to write a [.bat] file so that I can double-click it and the bash script is called. The bash script will launch several windowed graphics applications to monitor GPU / CPU temperature. I just did a fresh install of cygwin v1.7.7-1 (downloaded today) and Windows 7.
Code: monitor-temps.bat:
C:\cygwin\bin\bash.exe ~/bin/monitor-temps.bash pause
Code: monitor-temps.bash:
#!/usr/bin/bash "/cygdrive/c/Users/michael/Desktop/apps_and_drivers/GPU-Z.0.4.8.exe" &
Conclusion: After I double-clicked the [.bat] file, I get:
C:\Users\michael\Desktop>C:\cygwin\bin\bash.exe ~/bin/monitor-temps.bash C:\Users\michael\Desktop>pause Press any key to continue . . . /home/michael/bin/monitor-temps.bash: line 2: /cygdrive/c/Users/michael/Desktop/apps_and_drivers/GPU-Z.0.4.8.exe: Permission denied
I still get the same permissions error when I connected to the directory and manually executed the application.
Access rights: From my experience with permission issues in Linux, everything looks good, because I am the user I think and the file has the expected permissions:
$ whoami michael $ ls -l GPU* -rwx------+ 1 michael None 890720 2010-12-01 19:23 GPU-Z.0.4.8.exe
Question: Does anyone know how to fix this? Did I miss something?
windows-7 cygwin file-permissions
Mike
source share