[SLL] Screen
John Locke
freelocke at gmail.com
Thu Jan 17 20:20:55 PST 2008
Mike Stunes wrote:
> All this talk about screen got me interested.. anyway I've been
> playing around with it for a while and I like it.
>
> What I'm wondering is, is it safe to have something like this in my
> .zshrc:
>
> if [[ TERM != "screen" ]]; then
> exec screen
> fi
>
> That way, any time I open a new shell/xterm/whatever, it runs it in a
> screen session, and if I accidentally close the terminal window, it
> doesn't make my lovely emerge-in-progress go away with it. But is it
> safe to do something like that with every new shell?
Can't answer about how safe it is, but to me it defeats one of the main
benefits of screen - to be able to resume a disconnected session. I
often leave screens open on many of the servers I regularly log into,
and just use "screen -dr" to resume them after I connect. Especially
useful because my main machine is a laptop, and I regularly connect to
lots of different networks... this allows me to start a job, leave it,
and come back to it later...
Cheers,
John Locke
http://www.freelock.com
More information about the linux-list
mailing list