How do i start Mintty and run a script file?

前端 未结 4 909
闹比i
闹比i 2020-12-31 09:39

I wrote a simple CURL and put it in a script file.

if i run mintty first and then \"test.sh\" it runs the script in the file just fine. Works perfectly.

how

4条回答
  •  攒了一身酷
    2020-12-31 09:59

    I also use the solution offered by nkman, but I add the '-h always' option so that the console remains opened until I hit enter, to see what happened. So this is the target of my shortcut:

    C:\cygwin\bin\mintty.exe -h always /bin/bash -l -e '/cygdrive/c/cygwin/home/Administrator/startup.sh'
    

提交回复
热议问题