質問

How can I run a shell script in a new cygwin window? The following just opens up the windows type of cmd window which is difficult to resize.

cygstart /cygdrive/c/cygwin/bin/bash ~/runmyapp.sh

役に立ちましたか?

解決

Well, if you want to keep the window open after the script exits, you have to do something to make the shell that is executing the script not exit.

Here's an example that should work.

mintty bash -c "~/runfxtransact.sh; read -p \"Press enter to close this window.\"" &
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top