摘要: #!/bin/bash /usr/bin/expect << EOF spawn ssh root@60.32.0.19 expect { "yes/no*" { send "yes\r"; exp_continue } "*assword:" { send "m2a1s2u30000049\r" } } expect "root@fort2:~#" send "df -lh\r" expe... 阅读全文
posted @ 2017-07-19 16:13 正在努力的BOY 阅读(134) 评论(0) 推荐(0) 编辑