Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: nohup/disown and logout
- X-seq: zsh-users 8474
- From: Chris Johnson <cjohnson@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: nohup/disown and logout
- Date: Mon, 7 Feb 2005 09:26:03 -0500
- In-reply-to: <20050207082506.GB11544@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050207041841.GA5026@xxxxxxxxxxxxxxxxx> <20050207082506.GB11544@xxxxxxxxxxxxxxxxxxx>
Andrei A. Voropaev sent me the following 1.1K:
> > If I run a command like "nohup myprog &|", the job doesn't appear in the
> > jobs table, as expected, but when I exit the shell, .zlogout is executed
> > and everything hangs. No control key combinations seem to do anything.
> > Killing the nohup'ed process from another shell releases the original
> > shell and it exits. I get no message. I've tried with disown also, but
> > the same behavior is exhibited. If it makes any difference, I
> > experience this problem when logged in remotely to a university machine.
> > It seems to work all right locally on my own machine.
> >
> > Any ideas? Any further information I can provide? Many thanks!
>
> Are you using ssh to login?
I see... The ssh session hangs because there's still a connection to
std(in|out|err). If I redirect all these away to /dev/null or
elsewhere, the session closes as expected and the process continues to
run:
nohup myprog &> /dev/null < /dev/null &!
Thanks for the tipoff!
--
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author