摘要:
#!/usr/bin/python #coding:utf-8 import pexpect ip="192.1681.1.1" name="root" pwd="123@abc" port="22" #发送命令执行交互,spawn类,主要是启动和控制子程序 child=pexpect.spawn('ssh -p %s %s@%s' %(port,"root",ip) ) #child=... 阅读全文
posted @ 2017-02-08 15:12
cxiang
阅读(487)
评论(0)
推荐(0)

浙公网安备 33010602011771号