Workaround for hanging shells on exit

Todd Lewis tlewis at secureworks.net
Wed Jan 24 02:23:45 EST 2001


Under zsh, which has many advantages over bash, you can just do:

	% command &!
	% exit

and the shell takes care of all of this for you.

--
Todd Lewis                                       tlewis at secureworks.net

  God grant me the courage not to give up what I think is right, even
  though I think it is hopeless.          - Admiral Chester W. Nimitz

On Mon, 22 Jan 2001 mouring at etoh.eviladmin.org wrote:

> On Tue, 23 Jan 2001, Damien Miller wrote:
> 
> > On Mon, 22 Jan 2001 mouring at etoh.eviladmin.org wrote:
> > 
> > > Works if you don't do:
> > > 
> > > nohup command &
> > > exit
> > > 
> > > ..It still hangs..
> >  
> > Here you can do:
> > 
> > nohup command </dev/null 2>/dev/null >/dev/null &
> > 
> That works, and acts the way it should (putting the process in the
> background and letting it run long after the ssh shell has disconnected.
> 
> - Ben
> 






More information about the openssh-unix-dev mailing list