trouble with select and tochild of Popen3 object
Richard Cook
rcook at llnl.gov
Mon Feb 24 12:36:10 EST 2003
> Richard Cook (rcook at llnl.gov) wrote:
>> Hi, the below code is supposed to open an ssh connection to a remote
>> machine. It has been set up so that username and password is not
>> necessary for this connection, but often the ssh asks a yes/no
>> question to which I always wish to answer yes. The code below is
>> supposed to wait until the tochild is writable and write 'yes' to it.
>> what actually happens is written below. Can anyone help me figure
>> this one out? Thanks.
>Why aren't you using expect? IIRC, there is a python-reimplementation of
>it called pyexpect, but the original expect would work.
Thanks for the hint. I found pexpect and will probably use it for my
project if it works.
--
Richard Cook
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
More information about the Python-list
mailing list