标签:style blog color sp on div log bs ad
#!/usr/bin/expect -f set ip 192.168.20.200 set password admin set timeout 10 spawn ssh root@$ip -p 2169 expect { ##"*yes/no" { send "yes\r"; exp_continue} "*password:" { send "$password\r" } } interact
标签:style blog color sp on div log bs ad
原文地址:http://www.cnblogs.com/chenzc/p/4112502.html