Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question

marked as duplicate by Gilles, Michael Mrozek Dec 22 '11 at 23:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
As far as i know you cannot do that without screen. I have done a lot of research about that same problem i have had, but no joy. –  Hanan N. Dec 20 '11 at 8:28
    
Yes, the same to me. That's why I'm asking. Thank you! –  bakytn Dec 20 '11 at 8:46
5  
Maybe I'm stupid but why don't you install screen and use it? –  favadi Dec 20 '11 at 9:16
    
you are not stupid. Next time I will install screen and use it. –  bakytn Dec 20 '11 at 10:58

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
    
COOL! Will test! –  bakytn Dec 20 '11 at 10:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.