#!/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
一、框架结构: 工程目录 二、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
#!/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