This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Latest ssh can not be spawned from expect.

To whom it may concern:
My script works on a older cygwin software:
expect == 5.26
ssh == OpenSSH_3.6.1p2
My script fails on a current cygwin software:
expect == 5.26
ssh == OpenSSH_3.8.1p1
The symptons show that expect can not recognize the
ssh output, so
I will be prompted over and over again for the
Also note, if I ssh from the older installation to the
then my script works again.  It appears the problem
lives is term 
PS.  Here is my script and example successfull
$ cat t.exp
#!/usr/local.bin/expect -f
set timeout 60
send_user "Logging into pilot\n"
if {[catch {spawn ssh root@}] != 0} {
    send_user "PwrSlammer.exp could not telnet to\n"
    exit -1
expect "Are you sure you want to continue connecting*"
  { send "yes\r" 
; exp_co
ntinue } \
       "password:*"   { send "pillar\r" ; exp_continue
} \
       "#"      { }
Administrator@coibmtest1 /tmp
$ expect -f t.exp
Logging into pilot
spawn ssh root@
root@'s password:
Last login: Sat Aug 21 13:19:54 2004 from
[root@pilot1 root]#

Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish. 

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]