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: joydeep
Subject: Re: How to use screen configuration with command option
Date: Mon, 28 Dec 2009 14:38:35 +0100
User-agent: RoundCube Webmail/0.3.1

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. I am running screen inside
expect like


` ` `
expect -c '

#for debug
#exp_internal 1

#prevent Expect from printing out its interactions
log_user 0

spawn ssh '$ssh_Server' -t  "screen -aUS '$ssh_Server' -dR bash -l ||echo
'screen not installed'"
expect "*assword:"
send '$PASSWORD'
send "\r"
interact'
` ` `

How can I use [-X] here ? 

Thanks







reply via email to

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