[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to start screen from .bashrc
From: |
Henry Nelson |
Subject: |
Re: how to start screen from .bashrc |
Date: |
Wed, 20 Sep 2006 09:59:56 +0900 |
User-agent: |
Mutt/1.5.11 |
On Tue, Sep 19, 2006 at 06:44:26PM +0200, Peder Stray wrote:
> Remember that screen adds $STY to your environment, so you can test for
> it:
>
> if [ -z "$STY" ]; then
> exec screen -dR
> fi
>
> which would exec screen, attach to an already running or start a new
> screen if you aren't already in one. No problem there...
Fantastic! I've been looking for such a test.
You wouldn't by chance have a translation for that into "csh",
would you? Also, with "csh", am I right to assume the test
would go in ".login"?
TIA
> ... But for a host you ssh into, it would be ok.
Almost always my case.
--
henry nelson
WWW_HOME=http://yuba(dot)ne(dot)jp/(tilde)home/
- how to start screen from .bashrc, Peter, 2006/09/19
- Re: how to start screen from .bashrc, Ian Wat, 2006/09/19
- Re: how to start screen from .bashrc, Xavier Nicollet, 2006/09/19
- Re: how to start screen from .bashrc, Michael Parson, 2006/09/19
- Re: how to start screen from .bashrc, Peder Stray, 2006/09/19
- Re: how to start screen from .bashrc,
Henry Nelson <=
- Re: how to start screen from .bashrc, Peder Stray, 2006/09/20
- Re: how to start screen from .bashrc, Software Groups, 2006/09/20
- Re: how to start screen from .bashrc, Buddy Burden, 2006/09/28
- Re: how to start screen from .bashrc, Germán Gutiérrez, 2006/09/28
- Re: how to start screen from .bashrc, Phil!Gregory, 2006/09/28