1

Possible Duplicate:
How can I disown it a running process and associate it to a new screen shell?

Let's say I'm install applications directly on to a Linux box.

May I go to another machine and connect (via SSH) and take control of the main terminal's screen? Could I make it so that the main terminal would be switched off and show a login prompt?

I could use screen but I haven't install it yet.

bakytn
  • 2,951

2 Answers2

1

No, you cannot do this. The commands running on that TTY read and write from a specific TTY device (/dev/ttyX). There is no way to redirect output from that TTY device to your current TTY, and no way to send output from your current TTY device to that one.

In short, once youre on a TTY, you can not change it.

nopcorn
  • 9,559
phemmer
  • 71,831
0

You can SSH into the box, background the said task, kill the TTY on the host machine, and kill the user (kill -u) which should do about what you're wanting.

nopcorn
  • 9,559