[comp.unix.questions] attaching a job, changing the tty of a process

hitt@Neon.Stanford.EDU (Daniel Hitt) (02/27/91)

Given a job running on a terminal, how can it be moved to another terminal?

For example, person A may be running some interactive program P on
terminal X, when person B comes up and needs to use terminal X.

Person A may then suspend program P by typing kill -STOP <P's pid>
on terminal Y.  How can person A then resume P on terminal Y?

dan

net@opal.cs.tu-berlin.de (Oliver Laumann) (02/27/91)

In article <1991Feb27.034224.8021@Neon.Stanford.EDU> hitt@Neon.Stanford.EDU (Daniel Hitt) writes:
> Given a job running on a terminal, how can it be moved to another terminal?
> 
> For example, person A may be running some interactive program P on
> terminal X, when person B comes up and needs to use terminal X.

The `screen' window manager that was posted to comp.sources.misc long
ago and is now available via FTP on prep.ai.mit.edu (gnu/screen-2.1.tar.Z)
has a function to `detach' processes running under control of screen
and to resume them at a later point in time (possibly on a different
terminal).

--
Oliver Laumann    net@tub.cs.tu-berlin.de  net@tub.UUCP  net@pogo.ai.mit.edu


PS: I can't believe that Dan Berstein hasn't posted another plug for
`pty' yet; there must be something wrong with our newsfeed :-)