screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh and bash


From: Joe Zbiciak
Subject: Re: ssh and bash
Date: Tue, 24 Mar 2009 22:01:38 -0700 (PDT)

I believe he means something like this:

ssh () {
    if [ -z "$STY" ] ; then
        put_what_to_do_outside_screen_part_here
     else
        put_what_to_do_inside_screen_part_here
     fi
}

You can also use || or && operators to make it more condensed, although it's 
less readable.

 --
We sell Spatulas, and that's all!
http://spatula-city.org/~im14u2c/
http://sdk-1600.spatula-city.org/
http://spacepatrol.info/



----- Original Message ----
From: Chris Henderson <address@hidden>
To: Aaron Davies <address@hidden>
Cc: Screen Users <address@hidden>
Sent: Tuesday, March 24, 2009 11:45:07 PM
Subject: Re: ssh and bash

On Tue, Mar 24, 2009 at 9:27 PM, Aaron Davies <address@hidden> wrote:
> for 3, condition the creation of the function on your being in screen
> ([ "$STY" ] || ...)

Thanks. Could you please elaborate this a bit? I'm not quite sure what
I need to put in .bashrc.


_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users





reply via email to

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