10

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

3
  • 2
    Did you try disown? Feb 9, 2012 at 15:57
  • 1
    Sorry, Not a programming question. Voting to move to Superuser.com. Good luck.
    – shellter
    Feb 9, 2012 at 16:44
  • 1
    using disown the job is removed by job list but the problem remains: the windows never close until i close the notepad.exe
    – Alberto
    Feb 9, 2012 at 17:21

2 Answers 2

14

cygstart notepad

Or, if you're using mintty:

setsid notepad

(setsid is in the util-linux package.)

3
  • it's work, but how can i do if i already started the notepad? there is a command like disown?
    – Alberto
    Feb 10, 2012 at 16:03
  • I don't know of a way to do disassociate a running process.
    – ak2
    Feb 10, 2012 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, 2013 at 19:36
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .