--- Olive Esseret <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I want to configure bash in order that background
> process remains alive if we close the windows from
> which we have lauched the process (this would be
> especially usefull for X applications: if I lauch
> emacs& ; I do not want that closing the xterm
> windows
> close emacs). I have tried the 
> shopt -u huponexit 
> option but it does not work for nacground process:
> shopt -u huponexit
> emacs&
> then if we close the xterm window; emacs will quit.
> 
> I can manually disown the process:
> emacs& disown
> but would it possible to have that automatically?
> 
> Olive
> 

I have finally found the somewhat ugly hack to achieve
my purpose:

PROMPT_COMMAND='disown -a -h'

in the startup file.


                
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to