2013年4月11日 星期四

Get GNU screen resurrection after rebooting There are two options that I'm aware of which get close to resurrection. First, you can put some startup screens in your .screenrc, like this:
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------

screen bash
screen emacs -nw
chdir /home/me/src
screen -t code


Second, take a look at this project which will
Re-create the screen windows
Populate them with the session history you once had before the reboot
Log you into your previously logged in host via ssh
Place you into the same working directory you were once in.
Most of this data is derived from the prompt. Running any previously ran commands would be extremely dangerous, so this is as far as I can get you.