Re: how to start screen from .bashrc

2006-09-19 Thread Peder Stray
On Wed, 20 Sep 2006, Henry Nelson wrote: 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

Re: how to start screen from .bashrc

2006-09-19 Thread Henry Nelson
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 alre

Re: how to start screen from .bashrc

2006-09-19 Thread Peder Stray
On Tue, 19 Sep 2006, Michael Parson wrote: On Tue, Sep 19, 2006 at 05:27:51PM +0200, Xavier Nicollet wrote: Le 19 septembre 2006 ? 09:59, Peter a ?crit: I want to have screen launched when I log in to a Linux system with SSH. I have put the screen command inside ~/.bashrc. The result is that

Re: how to start screen from .bashrc

2006-09-19 Thread Michael Parson
On Tue, Sep 19, 2006 at 05:27:51PM +0200, Xavier Nicollet wrote: > Le 19 septembre 2006 ? 09:59, Peter a ?crit: >> I want to have screen launched when I log in to a Linux system with >> SSH. I have put the screen command inside ~/.bashrc. The result is >> that screen will reread .bashrc and sets

Re: how to start screen from .bashrc

2006-09-19 Thread Xavier Nicollet
Le 19 septembre 2006 à 09:59, Peter a écrit: > I want to have screen launched when I log in to a Linux system with > SSH. I have put the screen command inside ~/.bashrc. The result is > that screen will reread .bashrc and sets up a loop which keeps starting > screen over and over. My .screenrc f

Re: how to start screen from .bashrc

2006-09-19 Thread Peter
--- Ian Wat <[EMAIL PROTECTED]> wrote: > * Peter ([EMAIL PROTECTED]) wrote: > > I want to have screen launched when I log in to a Linux system with > > SSH. I have put the screen command inside ~/.bashrc. The result > is > > that screen will reread .bashrc and sets up a loop which keeps > start

Re: how to start screen from .bashrc

2006-09-19 Thread Ian Wat
* Peter ([EMAIL PROTECTED]) wrote: > I want to have screen launched when I log in to a Linux system with > SSH. I have put the screen command inside ~/.bashrc. The result is > that screen will reread .bashrc and sets up a loop which keeps starting > screen over and over. My .screenrc file automa

how to start screen from .bashrc

2006-09-19 Thread Peter
I want to have screen launched when I log in to a Linux system with SSH. I have put the screen command inside ~/.bashrc. The result is that screen will reread .bashrc and sets up a loop which keeps starting screen over and over. My .screenrc file automatically starts 3 windows. How do I prevent