<div dir="ltr">Hello,<div>for rancid with stack, I have an answer with this patch for hlogin (lines 449-478) :</div><div><br><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div><div><font face="Tahoma" size="2"><div><span class="Apple-tab-span" style="white-space:pre">      </span>    -re "$p_prompt"<span class="Apple-tab-span" style="white-space:pre">     </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>        if ![string compare $prog "ssh"] {</div><div><span class="Apple-tab-span" style="white-space:pre">             </span>    send -- "$userpswd\r"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>        } else {</div><div><span class="Apple-tab-span" style="white-space: pre;">               </span>    send -- "$passwd\r"<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>        }</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>        expect {</div><div>+<span class="Apple-tab-span" style="white-space: pre;">      </span>    <span class="Apple-tab-span" style="white-space: pre;">    </span>    "Enter switch number to connect to or <CR>:" {<br></div><div>+                    <span class="Apple-tab-span" style="white-space: pre;">      </span>send "0\r"<br></div><div>+                    <span class="Apple-tab-span" style="white-space:pre">        </span>exp_continue</div><div>+            <span class="Apple-tab-span" style="white-space:pre">      </span>    }</div><div><span class="Apple-tab-span" style="white-space: pre;">            </span>    eof<span class="Apple-tab-span" style="white-space: pre;">         </span>{ send_user "\nError: Couldn't login\n";<br></div><div><span class="Apple-tab-span" style="white-space:pre">                         </span>  wait;</div><div><span class="Apple-tab-span" style="white-space:pre">                         </span>  return 1</div><div><span class="Apple-tab-span" style="white-space:pre">                              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>    "Press any key to continue" {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>  send " ";</div><div><span class="Apple-tab-span" style="white-space:pre">                           </span>  exp_continue</div><div><span class="Apple-tab-span" style="white-space:pre">                          </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>    -re "$e_prompt" { send -- "$enapasswd\r" }</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>    "$prompt"<span class="Apple-tab-span" style="white-space:pre">   </span>{ set in_proc 0;</div><div><span class="Apple-tab-span" style="white-space:pre">                             </span>  return 0</div><div><span class="Apple-tab-span" style="white-space:pre">                              </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>        }</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>        exp_continue</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>    }</div><div><br></div></font></div>                                        </div>
</blockquote></div></div>