LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2006, 08:54 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Remote changing the vt in ssh


Here's the deal:

I'm running a process on 'server' on teminal screen 1. I ssh into the server (Or whatever). How can I see the process and output of the running terminal? Local doing it is no problem (Alt+f1)

Last edited by cwwilson721; 05-13-2006 at 08:55 PM.
 
Old 05-13-2006, 09:44 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm pretty sure you can't literally change to the terminal actually running the process. I'd start the process using screen and then detach - that way when you ssh in, you can use screen to re-attach to it.

If that doesn't work, you can use tee and/or shell re-direction to dump the output of the process to logs as well as the terminal. That way when you ssh in, you just tail the logs.
 
Old 05-13-2006, 11:43 PM   #3
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 31
If those are simple programs (not intended to be deamons), I'd go the screen way. Screen rules all the way.
 
Old 05-14-2006, 11:48 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by cwwilson721
I'm running a process on 'server' on teminal screen 1. I ssh into the server (Or whatever). How can I see the process and output of the running terminal? Local doing it is no problem (Alt+f1)
To just see the content of the terminal window tty1 (without being able to interact with the program) just type
Code:
cat /dev/vcs1
Eric
 
Old 05-14-2006, 02:12 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
That was EXACTLY what I was looking for.

Once again, Eric, you came through.

Not bad for a pet fish....(Was just watching 'Monty Python'....)
 
Old 05-14-2006, 02:58 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by cwwilson721
Not bad for a pet fish....(Was just watching 'Monty Python'....)
What episode, by the way?

Eric
 
Old 05-14-2006, 03:03 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
The one where John Cleese wants to get a license for "My pet fish, Eric"....

Last edited by cwwilson721; 05-14-2006 at 03:05 PM.
 
Old 05-14-2006, 03:17 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by cwwilson721
The one where John Cleese wants to get a license for "My pet fish, Eric"....
LQ did not accept just the smiley:
:-)
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 01:21 AM
Remote SSH Kurzweil Linux - Newbie 23 05-14-2005 01:41 AM
remote ssh jonfa Linux - General 3 02-10-2005 10:35 PM
Changing SSH remote login look untwisted Linux - Software 2 03-14-2004 01:50 PM
Remote Date Changing mriolo Linux - General 11 02-25-2003 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:52 AM.

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