LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-31-2004, 02:12 PM   #1
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
Cleaning up or resuming abandoned sessions


I often SSH into my linux box from work using PuTTY. If I am not running any port forwarding, PuTTY will often drop (or my server, not sure which the timeout comes from) my connection.

Now if I log in again using SSH, my past session (terminal) is still active.

Example from PS -A:
...
19669 pts/5 00:00:00 bash
19703 pts/5 00:00:00 man
...

I would like to be able to resume or at least kill these guys.

1) can I re-attach to these /dev/pts/# "terminals" using ssh?

2) if I cannot re-attach to them and continue where I left off, what is the best way to kill all the processes on "pts/#"? (didn't see an option in kill for this)


Also, while I am posting about hung sessions... I had a "screen" session running, and somehow I locked it up (ctrl-a commands work, but the bash shell in the screen window does not respond. Made sure scroll lock was not on, and tried ctrl-q to wake it up, but no dice. Anyone know of any other way I could have locked up the screen to no respond to commands?)
 
Old 08-31-2004, 02:17 PM   #2
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Install, learn and use package called screen It allows to resume dropped sessions with no consequences from the drop.
 
Old 08-31-2004, 02:20 PM   #3
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
unfortunately, if you are dropped from putty/ssh session there is no way to reconnect to it (screen is a virtual session and is made for reconnections). You'll have to kill the leftover sessions by using 'ps aux' and killing offending process numbers.
 
  


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
Finally Abandoned 9.3 --Laptop No Hard disk found 1kyle Suse/Novell 10 09-28-2005 07:16 AM
Azureus file resuming on fat32 therock598 Linux - Software 0 10-27-2004 04:51 PM
Mandrake 10 - Resuming from Standby Gringo Linux - Newbie 1 08-03-2004 02:37 PM
wget and auto resuming after disconnect GT I.N.C Linux - Software 6 05-10-2003 07:45 AM
Resuming upload with Proftpd JimKyle Linux - Networking 2 03-07-2002 11:30 AM


All times are GMT -5. The time now is 11:12 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