[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: huponexit in bash (solved!)



--- Olive Esseret <olive_esseret@yahoo.com> 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 



Reply to: