screen-users
[Top][All Lists]
Advanced

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

Re: Putting 'banner' into each started screen.........


From: Another Sillyname
Subject: Re: Putting 'banner' into each started screen.........
Date: Sat, 17 May 2014 08:47:12 +0100

David

Thanks for that, follow up question though.

I'm using busybox as this is a device, therefore ash instead of bash

so my line in screenrc is......

screen -t  logon 0 ash --login

which does work and shows the banner but also throws up a message...

Attaching from inside of screen?

I call a script from inside of /etc/profile that checks to see if
screen is started and if it isn't starts it before allowing the ssh
connection, my guess is that this is creating a one time loop?

I'll look at changing the profile script to see if screen is active
before deciding which bits to run there and see if that fixes the
problem, thanks for your help.





On 17 May 2014 05:06, David T. Pierson <address@hidden> wrote:
> On Thu, May 15, 2014 at 11:45:03AM +0100, Another Sillyname wrote:
>> I'd like the default bashrc banner to show in a screen session when it
>> starts, but can't think of an easy way of doing it......ideas?
>
> Is bash configured to show the banner in a login shell only?
>
> If so, pass --login to bash when creating the window in the .screenrc:
>
>   screen -t window-title bash --login
>
> But be aware if other things are also configured to happen in login
> shells.
>
> David
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users



reply via email to

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