Results 1 to 4 of 4

Thread: [Question ] Seeing TTY2 screen from SSH

  1. #1
    Associate
    Join Date
    Jun 2004
    Posts
    17

    [Question ] Seeing TTY2 screen from SSH

    Hi everyone,

    I am a newbie. Installed FedoraC6 and using it. I was wonder how do I see the output from TTY2 from a SSH session. Normally I ALT-F2 to get to it. Also I remember seeing a command which allow an application to be separated from the screen and able to call it back from command line. I need to do it all under ssh command line.

    Could anyone point me to the right direction to achieving this.

    Thanks for viewing.

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    I was wonder how do I see the output from TTY2 from a SSH session.
    You can't, when you connect through ssh, you create one single display connection, usualy a pts/N connection, through which you can't pipe output from the terminal.
    What you see on your screen is a display connection on the local machine, this is called through a vtN connection, this is created through getty, which is also responsible of creating TTYN, so here it is possible to pipe the output from another TTY to your current TTY.

    Also I remember seeing a command which allow an application to be separated from the screen and able to call it back from command line.
    It's convinient called screen
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Associate
    Join Date
    Jun 2004
    Posts
    17

    [Question ] Seeing TTY2 screen from SSH

    Thanks RedHead,

    erm ... the task i trying to accomplish is to launch a application and leave it running but when i login remotely i could see the result/output.

    Thanks for the screen command.

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Sure, just execute the command as:
    # screen -D -m command
    And when you want to see the output, login and run:
    # screen -r

    For more info on screen check my last thread explaining how to use it in scripts.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

Similar Threads

  1. irssi screen question
    By canela in forum Linux - General Topics
    Replies: 0
    Last Post: 11-05-2008, 03:26 AM
  2. Splitting screen out of a screen session
    By azgs in forum Linux - General Topics
    Replies: 3
    Last Post: 08-16-2008, 04:02 PM
  3. KDE and screen resolution
    By chumley in forum Linux - General Topics
    Replies: 3
    Last Post: 01-20-2005, 12:08 AM
  4. Big screen
    By MZGuy in forum General Chat
    Replies: 25
    Last Post: 08-09-2002, 11:27 PM
  5. screen res?
    By kornp in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 06-17-2002, 10:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •