docs:cygwin:running_shell_scripts

running shell scripts

Since .sh files need to run inside a unix shell, you can't simply double click them without modifying either the file types settings in windows, or to have the shortcut run 'bash', and then pass your script as an argument to bash.

FIXME

* note that this may not be possible in restricted permission environments

  1. create a windows shortcut to the .sh file
  2. modify the properties of the shortcut
  3. in the 'Shortcut' tab, change the target as follows:
    C:\cygwin\bin\bash.exe -l '/cygdrive/x/path/to/your/script.sh'
  4. you may also want to see the bash pause page
  • docs/cygwin/running_shell_scripts.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1