[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"?


> ... But for a host you ssh into, it would be ok.

Almost always my case.

henry nelson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]