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

Re: detaching a process from an ssh session ??



On Fri, Jun 25, 2004 at 08:32:19AM +1000, Zenaan Harkness wrote:
> On Fri, 2004-06-25 at 08:06, Damian Morris wrote:
> > to do it manually, you need to use one of the special ssh escape
> > codes. from my ssh man page:
> > 
> >    Escape Characters
> >      ~.      Disconnect.
> > The one you want is "~." but make sure you enter it as the input on an
> > empty line.
> 
> I discovered it even needs to be the first characters typed on a line,
> not just an empty line.
> 
> The thing with this is that it terminates the backgrounded process.

(In bash at least) you can use "disown -h <jobspec>" to remove a job
from your shell's job table without killing it. (man bash)

In combination with a backgrounded ssh session, maybe this will do?

HTH

-- 
Chris Harris <charris@rtcmarketing.com>
-------------------------------------------
GNU/Linux --- The best things in life are free.



Reply to: