我想出了解决我得到的错误的方法。由于一个已知的错误,我不得不在usr / lib / python.2.6 / dist-packages / pxssh.py中添加以下行:
self.sendline() #line 134
time.sleep(0.5) #line 135
self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt
python pexpect:SSHing然后更新日期
我想出了解决我得到的错误的方法。由于一个已知的错误,我不得不在usr / lib / python.2.6 / dist-packages / pxssh.py中添加以下行:
self.sendline() #line 134
time.sleep(0.5) #line 135
self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt