LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-19-2005, 01:04 AM   #1
xnomad
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
Switch to pseudo terminal you didn't log out of?


I logged onto my home machine remotely (from work) via ssh and started some downloads up. My box is on dial up and after about 5 hours the ISP terminated the line and my box dialed back up again.

During that time I was logged on via ssh. The dial up cut out and my sessions are still running. The downloads have resumed from what I can see via netstat.

The first three pseudo terminal sessions (shown below) are from this morning I had "screen" running and had the edonkey command line client running on one of them.
The last pts/03 is me logged on this afternoon.

Is there a way for me to gain access to the old screen session remotely via ssh?
If not is there a way I can access it again when I get back home locally?
I don't want to kill the sessions as I will have to queue in line for the download again but I do want to monitor it's progress.

USER TTY LOGIN@ IDLE JCPU PCPU WHAT
xnomad pts/1 09:51 3:46m 0.01s 0.01s /bin/bash
xnomad pts/2 09:51 25:05 1.09s 1.08s edonkeyclc
xnomad pts/0 09:40 24:47 0.02s 0.00s screen
xnomad pts/3 14:39 0.00s 0.04s 0.00s w
 
Old 07-19-2005, 01:15 AM   #2
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 15
that is the beauty of screen. you can connect to it from any other location.

screen -ls
will list what sessions are available
screen -x <PID from screen -ls>

the -x is to connect without kicking any other connected sessions
man screen

hope this helps
 
Old 07-19-2005, 01:35 AM   #3
xnomad
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks I'm in :-)
I should have messed about on the terminal trying to find the solution but it's so slow from downloading that I can't try anything out.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Pseudo tty, Pseudo terminals ? mqureshi Programming 0 07-30-2005 11:51 AM
is there a script that controls what happens when you switch a terminal? Fascistchicken Linux - General 2 09-29-2004 11:11 PM
Loose display on X exit or terminal switch hematose Linux - General 2 08-15-2004 05:22 PM
Questions about (Pseudo)Terminal devices beginner16 Programming 0 04-09-2004 11:03 AM
Pseudo Terminal Problems ailiez Programming 2 02-09-2004 02:58 AM


All times are GMT -5. The time now is 08:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration