From: Conor Daly (conor.daly at domain oceanfree.net)
Date: Tue 17 Sep 2002 - 18:36:03 IST
On Tue, Sep 17, 2002 at 01:11:33PM +0100 or so it is rumoured hereabouts,
Niall O Broin thought:
> On Tue, Sep 17, 2002 at 11:52:24AM +0100, Ronan Waide wrote:
> > On September 15, conor.daly at domain oceanfree.net said:
> > > Irritating little something here. I kinda think I saw it mentioned before
> > > but I'm not sure. Anyhow, using Openssh 2.9p2 (yeah, I know I need to
> > > upgrade...), in X, I ssh to a remote machine, launch OpenOffice.org, do my
> > > stuff and exit. The ssh session however, persists. It seems to
> > This /usually/ happens when you've started a background process on the
> > ssh connection. You can use one of ssh's tilde-escapes to either
> > background the ssh connection or kill it off.
> It's in the archives - answer in the OpenSSH FAQ at
> http://www.openssh.org/faq.html#3.10 I'm on the ball with this because I
> just looked it up myself, having encountered a similar problem when I wanted
> to leave a big rsync running in the background. However, the answer did work
> for me.
> I did
> shopt -s huponexit
> followed by
> nohup rsync options &
> and the rsync was working away. I then exited the remote shell, and the ssh
> session ended correctly. However, despite the nohup the rsync was killed.
UURRGH! Horrible kludge (especially since I can't seem to get it right in
the first place!)
I can make it work in an interactive shell but any idea how to make it
happen using "ssh host command"?
BTW, why not use
rsync -e ssh <rest of command>
rsync will then do its stuff over ssh without needing to start a shell in
the first place.
-- Conor Daly <conor.daly at domain oceanfree.net> Domestic Sysadmin :-) --------------------- Faenor.cod.ie 4:40pm up 17 days, 21:08, 0 users, load average: 0.00, 0.00, 0.00 Hobbiton.cod.ie 4:38pm up 17 days, 20:47, 1 user, load average: 0.15, 0.08, 0.06
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:55 GMT