Question

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

Était-ce utile?

La solution

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.\"" &
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top