#!/usr/bin/expect set timeout 30 spawn ssh fangkui@172.100.101.150 expect { "fangkui@172.100.101.150‘s password:" {send "652289237\r"} } interact
spawn命令和expect,布布扣,bubuko.com
spawn命令和expect
原文:http://www.cnblogs.com/wangfangkui/p/3922248.html