Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Feb 10 '12 at 12:54

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

Did you try disown? – Sven Marnach Feb 9 '12 at 15:57
Sorry, Not a programming question. Voting to move to Good luck. – shellter Feb 9 '12 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 '12 at 17:21
up vote 7 down vote accepted

cygstart notepad

Or, if you're using mintty:

setsid notepad

(setsid is in the util-linux package.)

share|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 '12 at 16:03
I don't know of a way to do disassociate a running process. – ak2 Feb 10 '12 at 16:36
ditto ak2 if I run say calc doesnt seem to matter if nohup or disown calc dies if I close the parent window – zzapper Feb 15 '13 at 19:36

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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