LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-31-2008, 01:56 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
attach to an already running terminal-bash session


Hi,
i have already created 2 ssh root connection and because of network-failure reasons been disconnected without properly shutting down the corresponding terminal sessions or logging out.
Code:
xxx:~# w
20:53:02 up 49 min,  3 users,  load average: 0,00, 0,00, 0,00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    xxx               20:05   30:48m  0.00s  0.00s -bash
root     pts/1    xxx               20:40   11:39m  0.01s  0.01s -bash
root     pts/2    xxx               20:47    0.00s  0.00s  0.00s w
How can i reconnect?

Thanks
 
Old 03-31-2008, 04:16 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,443
Blog Entries: 54

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
Quote:
Originally Posted by nocturna_gr View Post
i have already created 2 ssh root connection
Not a good practice, using root logins over a network.


Quote:
Originally Posted by nocturna_gr View Post
How can i reconnect?
You can't. Next time use 'screen' for easy session detaching and reattaching.
 
Old 12-27-2014, 09:36 PM   #3
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 312

Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
You can't.
Why not?
 
Old 12-27-2014, 09:50 PM   #4
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1}
Posts: 2,556

Rep: Reputation: 1094Reputation: 1094Reputation: 1094Reputation: 1094Reputation: 1094Reputation: 1094Reputation: 1094Reputation: 1094
Quote:
Originally Posted by Geremia View Post
Why not?
You have replied to an almost 7 year old thread. It would be much better to start a new one with your own context and question.
 
Old 12-28-2014, 07:16 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,443
Blog Entries: 54

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
Indeed you're posting in an ancient thread. Please don't.

Quote:
Originally Posted by Geremia View Post
Why not?
These days for reattaching file descriptors with ptrace there's retty (OK, that one existed for a long time already ;-p), injcode, reredirect and reptyr. YMMV(VM).
 
1 members found this post helpful.
  


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
LXer: Tips and tricks: How do I use the "xm block-attach" command to attach additiona LXer Syndicated Linux News 0 08-21-2007 12:50 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
attach gdb to a running process linwenyuan Linux - Desktop 1 10-15-2006 01:50 AM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
attach terminal to gtk gui mtron Programming 3 06-28-2005 03:39 PM


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