On Monday, December 28, 2009,  <joyd...@infoservices.in> wrote:
>
> On Mon, 28 Dec 2009 03:44:46 -0500, Chris Jones <cjns1...@gmail.com>
> wrote:
>> On Mon, Dec 28, 2009 at 01:30:14AM EST, joyd...@infoservices.in wrote:
>>>
>>> On Sun, 27 Dec 2009 16:28:18 -0500, Ed Blackman <e...@edgewood.to> 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 u...@host
>> $ 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
aaron.dav...@gmail.com


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

Reply via email to