2016-06-09 57 views

回答

0

你可以試試下面的,它會寫入提及的文件名稱:

child.sendline('hostname') 
child.logfile_read = open("<filename>", 'a') 
child.expect('<what ever you expect after the command execution>') 
相關問題