Pergunta

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

Foi útil?

Solução

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.\"" &
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top