[BangPypers] problems while using pexpect. pexpect.TIMEOUT always...
orsenthil at gmail.com
Mon Jun 8 18:18:50 CEST 2009
I have been trying to use pexpect and I am failing with
pexpect.TIMEOUT for all my attempts. In order to troubleshoot, I
decided to go with simplest possible one.
Here is my ssh to localhost:
[21:29:14 senthil]$ssh localhost -l senthil
senthil at localhost's password:
senthil at ubuntu:~$
And here is my pexpect script:
And the output I get is:
Traceback (most recent call last):
File "4.py", line 17, in <module>
File "/usr/local/lib/python2.6/site-packages/pexpect.py", line 858,
self.expect (self.delimiter) # delimiter default is EOF
File "/usr/local/lib/python2.6/site-packages/pexpect.py", line 1311,
return self.expect_list(compiled_pattern_list, timeout,
File "/usr/local/lib/python2.6/site-packages/pexpect.py", line 1325,
return self.expect_loop(searcher_re(pattern_list), timeout,
File "/usr/local/lib/python2.6/site-packages/pexpect.py", line 1409,
raise TIMEOUT (str(e) + '\n' + str(self))
pexpect.TIMEOUT: Timeout exceeded in read_nonblocking().
Complete Traceback is here:
Which shows that command is executed.
Can someone help me pointing out what I am doing wrong here?
Why is not working for such a simple thing as ssh to my localhost.?
More information about the BangPypers