print 'exception',inst
sys.exit(MAIN_ERROR)
index=child.expect(keys)
print index,'index'
if index == 3:
child.close()
sys.exit(TIME_OUT_ERROR)
if index == 4:
child.close()
sys.exit(SSH_CON_ERROR)
print "input yes"
if index == 0:
child.sendline('yes')
index = child.expect(keys)
if index == 3:
child.close()
sys.exit(TIME_OUT_ERROR)
阅读(465) | 评论(0) | 转发(0) |