摘要: #include <iostream>#include <fstream>#include <vector>#include <string> int main() { std::vector<std::string> v_ip; v_ip.clear(); v_ip.push_back("192. 阅读全文
posted @ 2018-08-16 20:43 东宫得臣 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/expect set ip [lindex $argv 0] set password [lindex $argv 1] spawn ssh -o ConnectTimeout=15 -l root ${ip} "hostname" expect { "(yes/no)? " 阅读全文
posted @ 2018-08-16 15:56 东宫得臣 阅读(218) 评论(0) 推荐(0) 编辑