Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Linux Chat
FedoraForum Search

Forgot Password? Join Us!

Linux Chat The place to talk about anything linux-related outside of Fedora

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th May 2004, 05:49 AM
mrbinky3000 Offline
Registered User
 
Join Date: May 2004
Location: Athens, Ohio USA
Posts: 4
Question How do I recover a lost shell session because of modem connection dropping

Hello,

This may seem like a newbie question. I was logged into my colocated server from home via a dialup connection when the connection was dropped. I was in the middle of running rpmbuild to compile something.

Is there any way to reconnect and get back on the same shell session that I was on before my modem dropped the connection?

- Matt
Reply With Quote
  #2  
Old 20th May 2004, 12:01 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
I doubt you can. Processes you start by default only run for the current session. Perhaps you have some processes that survived. Try running top or some process utility and filter for your name.

Next time try making your commands not hang up by running
Code:
nohup command
Reply With Quote
  #3  
Old 20th May 2004, 08:10 AM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
I oncehave read that if you start a process in the background ( with & on the end of the command) it will run even if you log-off the shell. Try it start something like updatedb & and log off. And then come back and see whether it runs or no.
__________________
--
http://twitter.com/ik12
Reply With Quote
  #4  
Old 21st May 2004, 04:53 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Incorrect. When a shell session ends, it takes all of it's child processes (including background processes) with it. If you want to start something in the background and leave it running, you need to use nohup to disconnect it from the shell session.

Regarding recovering a remote shell session: it's gone. Depending upon the remote protocol (telnet, ssh, rsh) and the OS, the session may still be "running," but the programs running in it are attached to it, not the new one.
Reply With Quote
  #5  
Old 21st May 2004, 05:24 AM
bradthemad's Avatar
bradthemad Offline
Registered User
 
Join Date: May 2004
Location: Atlanta, GA
Posts: 101
See also: GNU screen
__________________
?
Reply With Quote
  #6  
Old 21st May 2004, 01:19 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
thx for the information crackers
__________________
--
http://twitter.com/ik12
Reply With Quote
  #7  
Old 16th November 2004, 03:51 PM
nphadnis Offline
Registered User
 
Join Date: Nov 2004
Posts: 1
The screen command can be used to start a recoverable shell session. The screen -r command can be used to recover a lost session. The screen -list command can be used to view sessions that can be recovered
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless connection keeps on dropping achinda99 Hardware & Laptops 3 2nd January 2013 05:33 PM
F9 LiveCD error: ambiguous redirect - dropping to a shell slaboure Using Fedora 6 10th December 2008 05:00 AM
Squirrelmail Immdiately dropping connection: ERROR: Connection dropped by IMAP server r6ual Servers & Networking 2 28th August 2006 02:23 PM
56k modem and network not dropping when modem switched off Motor Servers & Networking 1 14th September 2005 05:06 PM
Lost ethernet connection to cable modem veritas Servers & Networking 26 16th April 2005 02:35 PM


Current GMT-time: 03:32 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat