There is a way to properly disown process from cygwin bash?

for example i can run in background

/cygdrive/c/Windows/notepad.exe &

and the notepad window shows but when i close the bash using Ctrl+D or typing exit the bash window remain open

link|improve this question

75% accept rate
1  
Did you try disown? – Sven Marnach Feb 9 at 15:57
1  
Sorry, Not a programming question. Voting to move to Superuser.com. Good luck. – shellter Feb 9 at 16:44
using disown the job is removed by job list but the problem remains: the windows never close until i close the notepad.exe – tyranitar Feb 9 at 17:21
feedback

migrated from stackoverflow.com Feb 10 at 12:54

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

cygstart notepad

Or, if you're using mintty:

setsid notepad

(setsid is in the util-linux package.)

link|improve this answer
it's work, but how can i do if i already started the notepad? there is a command like disown? – tyranitar Feb 10 at 16:03
I don't know of a way to do disassociate a running process. – ak2 Feb 10 at 16:36
feedback

I'd try with nohup as explained in this response to a similar question.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.