Re: logout from ssh session
From: Darren Tucker (dtucker_at_zip.com.au)
Date: 01/15/04
- Previous message: Payal Rathod: "port forwarding"
- In reply to: Greg Wooledge: "Re: logout from ssh session"
- Next in thread: B: "Re: logout from ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 Jan 2004 11:13:46 +1100 To: Greg Wooledge <wooledg@eeg.ccf.org>
Greg Wooledge wrote:
> On Tue, Jan 13, 2004 at 09:15:52PM +0200, David Danovich wrote:
>
>>run &
>>
>>able to logout from the computer. When I write logout computer just
>>freeze and wait till job finished.
This is a Feature not a Bug. If you leave descriptors open the process
could conceivably read or write to/from them, so sshd will wait for them
to close.
With Redhat 9's nohup, this is stdin. If I do "sleep 500 & exit", I get:
$ lsof -p 9241
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
[snip]
sleep 9241 dtucker 0u CHR 136,7 9 /dev/pts/7
sleep 9241 dtucker 1w REG 3,2 0 3606295 /home/dtucker/nohup.out
sleep 9241 dtucker 2w REG 3,2 0 3606295 /home/dtucker/nohup.out
The minimum command line to to what you want is therefore:
$ nohup sleep 500 </dev/null & exit
For gory details see:
http://bugzilla.mindrot.org/show_bug.cgi?id=52
> This is also an *extremely* frequently asked question on this list. I've
> beaten it to death already. Unfortunately, I can't seem to find a
> searchable archive of this list anywhere.
Try: http://marc.theaimsgroup.com/?l=secure-shell
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Previous message: Payal Rathod: "port forwarding"
- In reply to: Greg Wooledge: "Re: logout from ssh session"
- Next in thread: B: "Re: logout from ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]