LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   View a specific tty session using SSH? (http://www.linuxquestions.org/questions/linux-general-1/view-a-specific-tty-session-using-ssh-141060/)

intermod 02-01-2004 01:01 PM

View a specific tty session using SSH?
 
I am running three different applications on a remote Linux computer in different tty sessions (using the ATL+F1, F2, etc.). Each application is currently running in "debug" mode and outputing messages in standard error, within each session.

I need to log in to this remote computer using SSH and be able to view the std error runs of the three different sessions.

Is there a way to chnage your tty session while SSH'ing?

I am using RH Linux V9, Kernel 2.4.20-8 in command line mode on the remote computer. Putty on the other.

bobthebaritone 02-03-2004 01:55 AM

Why not redirect std output and error to a file and tail the file from where-ever?

$ <program to run > 2>&1 | tee <program to run>.log &

Cheers

Unseen 02-03-2004 01:16 PM

You should think about just running screen after logging into your tty sessions.

screen will let you disconnect and leave the program running, so you could be at tty, ssh in, etc, and just reconnect to the screen session and it will show you what is going on.

Check it out, it'll fit what you want to do very nicely.


All times are GMT -5. The time now is 03:01 PM.