[plug] Can I restart a suspended job on a remote machine from a different shell?

William Kenworthy billk at iinet.net.au
Fri Mar 18 18:31:30 WST 2005


It did work - when I got home the output was on screen, but needed a
couple of jabs at the enter key to get the prompt back.  I'll have a
look at your script later and see if that will do what I want (for next
time!)

BillK

On Fri, 2005-03-18 at 16:21 +0800, Bernard Blackham wrote:
> On Fri, Mar 18, 2005 at 03:46:56PM +0800, Russell Steicke wrote:
> > On Fri, Mar 18, 2005 at 03:16:07PM +0800, W.Kenworthy wrote:
...
> 
> The only problem with this is that either the shell will get a
> little confused, as it'll still be the shell marked as the
> controlling process of the tty (the shell won't be aware the the
> process is now foregrounded), or the process will try to write to
> standard output, find out it's not the controlling process of the
> tty, and be sent a SIGTTOU and stop.
> 
> If you're daring, you could try an experimental tty stealer that I
> wrote a while back - http://dagobah.ucc.asn.au/things/grab.c - it
> lets you catch the ttys of a currently running process to your
> current tty (for example, into a screen) ... I've been meaning to
> improve it never got around to it.
> 
> Bernard.
> 
-- 
William Kenworthy <billk at iinet.net.au>
Home!




More information about the plug mailing list