Windows

icone
Windows
Execute bash scripts on cygwin directly via Windows interface -badmin- jeu 21/04/2016 - 14:53

After reading the excellent article about cygwin bash scripts under Windows by duncansmart, I wanted to adapt this script so it could handle scheduled tasks as system without having a windows user account involved (launching bash without --login option).

So, in order to execute a bash script called something.sh in /cygdrive/c/home/something.sh, here is the counterpart that will execute the script directly from Windows, called c:\cygwin\home\something.cmd: