problems while using pexpect: pexcept.TIMEOUT always

Senthil Kumaran orsenthil at
Mon Jun 8 13:40:54 EDT 2009

On Jun 8, 10:19 pm, "R. David Murray" <rdmur... at> wrote:
> I would suggest using the 'setlog' method of child to get
> more debugging information from pexpect.  I've found that the
> best way to diagnose the source of a timeout.

setlog method seems to be deprecated and 'not allowed' too as the help
But, I just figured out with help from another forum (bangpypers) that
I was not closing the ssh session.
so doing child.sendline('logout') and then doing in my
script worked out.


More information about the Python-list mailing list