LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2012, 01:14 PM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
how to view a terminal from another terminal


I have a box running centos 6. I have a console program that is running a server program that has to run in a working directory and in a console. I want to be able to run it on the box on a direct console. However, I want to be able to view that console from a ssh terminal from a remote location. Is there a way to SSH in and bring and view that terminal? I want to do this because this console program crashes from time to time and I want to be able to restart it and not have to have my say laptop opened and connected in that terminal to run it. What happens is when I close that remote terminal window of course that program gets killed. I know I could do this with vnc adn gnome but I just want to be able to do this through ssh.
 
Old 05-20-2012, 01:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,298

Rep: Reputation: Disabled
Have you considered screen?

Edit: And then there's ttysnoop, of course.

Last edited by Ser Olmy; 05-20-2012 at 01:43 PM.
 
Old 05-20-2012, 07:18 PM   #3
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Ser Olmy View Post
Have you considered screen?

Edit: And then there's ttysnoop, of course.
If I understand this right, screen you would have to start out using screen in order to get it back? Cant just grab a local shell that is already running right?
 
Old 05-20-2012, 07:39 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,298

Rep: Reputation: Disabled
Quote:
Originally Posted by kitek View Post
If I understand this right, screen you would have to start out using screen in order to get it back? Cant just grab a local shell that is already running right?
Yes, that's correct.
 
Old 05-20-2012, 07:41 PM   #5
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Ser Olmy View Post
Yes, that's correct.
What happens if you are in a screen and you suddenly get disconnected? The screen stays live since it is started until you Ctr-l k right?
 
Old 05-20-2012, 07:44 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,298

Rep: Reputation: Disabled
Quote:
Originally Posted by kitek View Post
What happens if you are in a screen and you suddenly get disconnected? The screen stays live since it is started until you Ctr-l k right?
That's the whole idea. You can reconnect to a detached screen session with screen -r.
 
Old 05-20-2012, 07:45 PM   #7
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Ser Olmy View Post
That's the whole idea. You can reconnect to a detached screen session with screen -r.
Okay I think this will work fine. Just a lot of commands makes it seem more complicated than it really is. But thank you for telling me about screen. I had never heard of it before.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view an incomplete prompt in terminal infinite_scale Linux - General 7 02-14-2012 12:42 AM
view star wars on a terminal jmjlinux General 2 04-02-2009 01:34 AM
view pdf in terminal? tramni1980 Slackware 7 11-14-2007 01:05 PM
View a web page using the terminal. caleb1011 Linux - Newbie 9 01-15-2006 06:38 PM
view another user's terminal? doza Linux - Software 2 08-18-2004 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration