problems while using pexpect: pexcept.TIMEOUT always

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


On Jun 8, 10:19 pm, "R. David Murray" <rdmur... at bitdance.com> 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
says.
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 child.read() in my
script worked out.

Thanks,
Senthil



More information about the Python-list mailing list