Вопрос

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