screen-users
[Top][All Lists]
Advanced

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

Re: need help to design screen fail-over


From: joydeep
Subject: Re: need help to design screen fail-over
Date: Thu, 24 Dec 2009 17:22:06 +0100
User-agent: RoundCube Webmail/0.3.1

On Thu, 24 Dec 2009 16:37:14 +0530, Pandurangan R S
<address@hidden> wrote:
>> I am using expect command to do auto ssh login
> 
> Expect is not a good choice to do this.
> 
> Instead it is better to use SSH Key authentication. See
> http://sial.org/howto/openssh/publickey-auth/
> 
> You can use empty passphrase (not recommended, but better than using
> expect) or use ssh-agent (recommended) to do auto login.

Hello,

I am familiar with both and implemented in practical. Still looking the
way to solve screen failover script which is doing everything well ; except
the failover part.

Thanks

> 
> On Thu, Dec 24, 2009 at 4:02 PM, J. Bakshi <address@hidden>
wrote:
>> Hello list,
>>
>> I am using expect command to do auto ssh login. It is working well with
>> screen like
>>
>> ` ` `
>> spawn ssh  '$ssh_Server'  -t  "screen -aUS  '$ssh_Server'  -dR bash -l"
>> expect "*assword:"
>> send '$PASSWORD'
>> send "\r"
>> interact'
>> ` ` `
>> All OK.
>>
>> Now I am trying to do a screen fail over, so that if the remote server
>> does not have screen then it will do just ssh login. I have tried with
>>
>> ` ` `
>> spawn ssh " '$ssh_Server' -t  screen -aUS  '$ssh_Server' -dR bash -l ||
>> '$ssh_Server' "
>> ` ` `
>>
>> and it reports error as
>>
>> ` ` `
>> send: spawn id exp4 not open
>>    while executing
>> "send testpassword"
>> ` ` `
>>
>> What might be wrong here ? Any clue ?
>> Thanks
>>
>> --
>> জয়দীপ বক্সী
>>
>>
>>
>> _______________________________________________
>> screen-users mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/screen-users
>>




reply via email to

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