LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2013, 11:32 AM   #1
binladen_vn88
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
How to save a GNU screen session?


I'm using GNU screen on Ubuntu 12.04. I want to create a screen session named "test":
Code:
screen -S test
and then create some screen tabs. On each task, i do some work such as edit a text file, or something else.

In a situation, i have to shutdown my PC, and then return to work in tomorrow. So, i need to save screen session ("test") to disk, and load this session again.

Could you help me?

Thanks!
 
Old 09-10-2013, 01:17 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It does not work that way. "Screen" is used to leave running programs when you can logout, but not turn off computer. So it is most useful on remote computer, a server, which is working all the time. Then you can connect to it from your own computer, establish screen session, logout and turn off your own computer.

If you want that behavior, then every program need to known how to store own session (opened files, their state, row where was cursor, etc.), for example some of application from KDE can do it and KDE has own session manager, when you save session (can be automatically when shutdown), you can restore it any time.

Other methods are hibernation and sleep mode. First store your whole machine state, and restore it after power on, but there can be some hardware issues, which prevent use it, and you can only store one session, and cannot change some computer components in meantime. Latter additionally need be connected to power source or UPS, it need small power to sustain machine state.
 
Old 09-17-2013, 08:26 PM   #3
binladen_vn88
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eSelix View Post
It does not work that way. "Screen" is used to leave running programs when you can logout, but not turn off computer. So it is most useful on remote computer, a server, which is working all the time. Then you can connect to it from your own computer, establish screen session, logout and turn off your own computer.

If you want that behavior, then every program need to known how to store own session (opened files, their state, row where was cursor, etc.), for example some of application from KDE can do it and KDE has own session manager, when you save session (can be automatically when shutdown), you can restore it any time.

Other methods are hibernation and sleep mode. First store your whole machine state, and restore it after power on, but there can be some hardware issues, which prevent use it, and you can only store one session, and cannot change some computer components in meantime. Latter additionally need be connected to power source or UPS, it need small power to sustain machine state.
Oh, thank you so much!
 
  


Reply

Tags
linux client



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
How to set xterm title to gnu screen session name WindAndTiger Linux - Software 6 12-02-2022 11:39 AM
Can I take a text screenshot of a GNU Screen session? FireRaven Linux - Server 3 03-04-2012 08:13 PM
GNU Screen: send "stuff" command to detached screen session? metaf5 Linux - General 3 01-23-2012 08:44 PM
Trying to start a GNU screen session at startup th_alton Linux - Newbie 2 09-10-2009 03:31 PM
Screen resolution will not stay even with save session LordFett SUSE / openSUSE 4 07-10-2006 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:55 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
Open Source Consulting | Domain Registration