From current cygwin shell, I want to run a command(say, pwd
) in another cygwin window, I use:
cygstart /bin/bash pwd
It did spawn a new cygwin window but close immediately. I want the window is still opening and showing the command execution result.
How can I achieve this?
Thanks in advance.
Best Answer
you could wrap this into a simple shell that waits for some input at the end of your command. For example, this one achieves this:
chmod +x ~/cygwrap.sh and then invoke it, example:
~/cygwrap.sh pwd