screen-users
[Top][All Lists]
Advanced

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

Re: How to use screen configuration with command option


From: Aaron Davies
Subject: Re: How to use screen configuration with command option
Date: Mon, 28 Dec 2009 11:19:42 -0500

On Monday, December 28, 2009,  <address@hidden> wrote:
>
> On Mon, 28 Dec 2009 03:44:46 -0500, Chris Jones <address@hidden>
> wrote:
>> On Mon, Dec 28, 2009 at 01:30:14AM EST, address@hidden wrote:
>>>
>>> On Sun, 27 Dec 2009 16:28:18 -0500, Ed Blackman <address@hidden> wrote:
>>
>> [..]
>>
>>> > My understanding, from this thread and other messages he's posted,
>>> > is that he has a great number of servers that he wants to connect to
>>> > and then run screen, and doesn't want to create a .screenrc on each.
>>>
>>> Yes, absolutely correct. This is what I am trying to do here.
>>
>> Do you mean something like this:
>>
>> $ ssh address@hidden
>> $ screen -S $HOSTNAME
>> $ screen -S $HOSTNAME -X hardstatus alwayslastline "Hello World!"
>> $ screen -S ..           <other screen command> ...
>>
>> And this is not working in your case..??
>>
>> CJ
>
> Hello CJ,
>
> [-X] is applicable for existing session only.

The short answer afaik is that you cannot pass arbitrary options to a
new screen session while starting it; you have to create a screen and
then use -X to send commands to it.

If this is a common problem, it might be worth looking at adding
something like ssh's "-o key=value" syntax. The only problem I can
forsee is that command lines could get ridiculously long…

-- 
Aaron Davies
address@hidden




reply via email to

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