码迷,mamicode.com
首页 >  
搜索关键字:expcet    ( 3个结果
使用expcet传公钥到多台服务器
#!/usr/bin/expectif{$argc!=2}{send_user"usage:expectssh.expip\n"exit}#definevarsetip[lindex$argv0]setpassword[lindex$argv1]spawnssh-copy-id-i$ipexpect{-timeout2"(yes/no)?"{send"yes\r";exp_continue}"*p
分类:其他好文   时间:2018-07-29 15:20:54    阅读次数:165
Python+requests+unittest+excel实现接口自动化测试框架
一、框架结构: 工程目录 二、Case文件设计 三、基础包 base 3.1 封装get/post请求(runmethon.py) 3.2 封装mock(mock.py) 四、数据操作包 operation_data 4.1 获取excel单元格中的内容(get_data.py) 4.2 获取exc ...
分类:编程语言   时间:2018-07-23 15:07:25    阅读次数:308
expect实现自动scp和ssh登录后执行命令,并向bash提供返回值
#!/bin/bash#全局变量:用户名,普通用户密码,root密码loginname="icgsu"userpwd="netentsec"rootpwd="netentsec"#读取iplistcat/root/iplist|whilereadlinedoip=($line)#scp脚本及ssh登录执行/usr/bin/expect<<EOFsettimeout10spawnscp/root/check_and_fix.sh$loginnam..
分类:其他好文   时间:2017-06-02 01:16:00    阅读次数:903
3条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!