会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
草丛抡
博客园
首页
新随笔
联系
管理
订阅
2018年7月6日
pexpect_1.py
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import pexpect def connect(ip,passwd,cmd): ret = -1 ssh = pexpect.spawn('ssh root@%s "%s"'%(ip,cmd),timeout=2,searchwindowsize=10) try: ...
阅读全文
posted @ 2018-07-06 10:58 草丛抡
阅读(129)
评论(0)
推荐(0)
编辑
公告