screen-users@gnu.org
[Top] [All Lists]

Re: saving session status every once in a while

Subject: Re: saving session status every once in a while
From: Gerald Young
Date: Fri, 2 Jul 2010 05:04:19 -0500
On Friday 02 July 2010 3:34:09 am Albert Vilella wrote:
> Hi,
>
> Is there any way of saving one's session status every once in a while,
> so that if the computer crashes, one can recover the different
> screens, screen names,
> and bash history in the session?
>
> Cheers,
>
> Albert.
>

I currently use a set of scripts to save screen sessions. They preserve:
- Session and window titles/numbers
- Scrollback/history/working dir for bash instances
- Vim session saving

It's all explained in this thread:
http://lists.gnu.org/archive/html/screen-users/2009-08/msg00015.html

I included the scripts I use in:
http://lists.gnu.org/archive/html/screen-users/2009-08/msg00024.html

In that archive you can look into:
SESSION_demo/main/screenrc
SESSION_demo/main/save_screenrc
SESSION_demo/main/bashrc

Specifically to see how a bash window is saved/loaded with the scripts. From 
there you could make scripts that better suit your taste.

Gerald Young


_______________________________________________
screen-users mailing list
screen-users@xxxxxxx
http://lists.gnu.org/mailman/listinfo/screen-users

<Prev in Thread] Current Thread [Next in Thread>