On Wed, 2003-09-03 at 13:22, Tom Munro Glass wrote: > Many thanks for the tip about screen. I'd never heard of it but it looks > incredibly useful. I've just emerged it on my Gentoo machine, and see it's > already available in RH9 I stuck on a test machine in England. > > This gets my vote for "Tip Of The Day"!
Stuff 'screen -rd' in your .profile, or whatever login script you use. That'll try to reconnect your session automatically, which gets you over the 'but I never remember to invoke screen' stage. Also, conceptually give up the idea of having multiple xterms/kterms/whatever logged into the remote box - only one session at a time. Partly because 'screen -rd' will be annoyed by multiple logins, and partly because storing state with screen is much better than with separate consoles (see today's other thread about restoring shell states) For me, I connect to my remote box's screen from Linux, OSX, and windows, depending on where I'm sat. It handles resizing pretty well, and if all of a sudden you find that your screen session is missing, it's a prime indicator that your server has recently rebooted! Before you get too used to screen, you may want to consider remapping the default "C-a" command string with something else, if you're in the habit of using C-a for emacs-binding beginning-of-line in either your editors or your command lines. -jim
