In article <[EMAIL PROTECTED]>,
Cantankerous Old Git  <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] wrote:
>> In general, it is good idea to use expect kind of tool to deal with
>> interactive programs like ssh. You may try using pexpect
>> (http://pexpect.sourceforge.net).
>> 
>
>I tried tha once (on Solaris) and found that ssh could tell that 
>pexpect wasn't a real tty and refused to connect. In the end, I 
>had pexpect  do a telnet 127.0.0.1, log in, then so ssh to the 
>real destination. Pain in the ass but it worked.
>
>The Cog

1.  Pexpect is designed to do better than this.  Please
    report specific deficiencies in its operation.
2.  (The original) Expect has had years of working out
    pty vagaries.  In a pinch, I'd write in Expect, and,
    if necessary, control the Expect process from Python.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to