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. 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





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

Reply via email to