Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run application in cygwin without blocking the shell

Tags:

cygwin

I would like to open applications in cygwin, e.g. notepad etc, without the shell blocking. Is there a way of doing this?

For example, typing in notepad myfile.txt will open notepad, and the cygwin shell will be unavailable until notepad is closed. I'd like cygwin to remain responsive whilst notepad is open.

like image 820
Ben Avatar asked Nov 15 '25 18:11

Ben


1 Answers

If you are using some UNIX shell such as sh, then

notepad &

should work.

Remember: If you're using another shell, then other rules apply. cmd won't block for GUI applications, unless start /wait is used. But on UNIX-likes there is no distinction between console programs and GUI programs. They all run interactively on the console unless detached by starting them with & after the command.

like image 176
Joey Avatar answered Nov 18 '25 18:11

Joey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!