LinuxQuestions.org
Visit Jeremy's Blog.
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 04-21-2011, 10:59 AM   #1
siasia
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Rep: Reputation: 0
Question Lost all my running programs on a server (inside *screen) when my client restarted


I sshed to a server a week ago, then ran *screen* and created a few windows in my screen session. I then ran a few programs on those screens. All the programs were running in the background (I run them with &). I did not close or detach from the screen sessions. So I was still connected to those screen sessions from my client machine.

Then, this morning I find my client machine rebooted. When I do screen -ls I find there are no screens available to reattach to. But that is not the worst part. The strange thing is that all my processes (which were running on the server) have disappeared as well, even though they were running in the background.

I thought 1) using screen I will be able to re-attach to old screens when my client restarts, 2) If I have sshed to a server and have run programs in the background, restarting the client should not stop those programs (even if I had not used screen).

Am I missing something basic here?
 
Old 04-21-2011, 12:58 PM   #2
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
First to your point 2. Any processes running in the background are still tied to your login, if you logout the processes are terminated. If you don't want the process to terminate on logout try:
Code:
nohup <command> &
Point 1 should be correct. Why you lost your screen session, I don't know. I use screen all the time without issue (admittedly I generally detach and log off when I am not using it) Is it possible a BOFH killed your screen session?
 
Old 04-21-2011, 02:39 PM   #3
siasia
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Code:
nohup <command> &
Point 1 should be correct. Why you lost your screen session, I don't know. I use screen all the time without issue (admittedly I generally detach and log off when I am not using it) Is it possible a BOFH killed your screen session?
Thanks for the response. I just realized that to my surprise our server had got rebooted as well. That explains everything.
 
  


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
can SUSE (host) be restarted when xp (guest) on vmware is running inside eager2know Linux - Newbie 3 10-25-2009 08:15 AM
Login screen when running Linux inside of windows bkdc Linux - General 3 10-28-2008 02:45 PM
Running X programs with a private or non-existent screen Orkie Linux - Software 2 12-04-2005 01:21 PM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 07:19 AM
running samba inside ssh server kpachopoulos Linux - Networking 4 10-24-2004 04:12 PM


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