I wrote a very bad script that attempts to save some sort of state -
actually it writes a screenrc file that can be used to start a new
screen session.

It is very bad because it must be run in every shell in the screen
session and names etc need to be put in by hand, but it can save
directory and also load commands. I'm sure some of it could be
scripted using screen -X, testing for min and max window numbers and
looping through them. I'm not sure it is possible to get any other
information easily either.

I haven't bothered any further than since this works for me. I can
email it if you think it may be of use.

David Collins


On 23/08/2009, Erik Osheim <e...@plastic-idolatry.com> wrote:
> On Sun, Aug 23, 2009 at 03:02:44PM +0200, lukasz wrote:
>> Heres the question:
>> Is there a way to save screen session to disk, so I could load it when
>> PC reboots?
>> Eg. I would like screen to try to open some directories previously opened.
>
> This question gets asked periodically. Currently, I don't know of any
> good way; there was a tool called CryoPID that had some of these
> capabilities but I don't think it works anymore.
>
> -- Erik
>
>
> _______________________________________________
> screen-users mailing list
> screen-users@gnu.org
> http://lists.gnu.org/mailman/listinfo/screen-users
>


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

Reply via email to