On Jun 8, 10:19 pm, "R. David Murray" <rdmur...@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 -- http://mail.python.org/mailman/listinfo/python-list