문제

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