作者: fufelixzh 时间: 2013-02-16 15:38
a little comments , hope useful for you
try use spawn_id
and add sleep between send or add expect to check return value
"send "wget -P /tmp abc.com:/tmp/1.sh\r"
send "sh /tmp/1.sh\r"
send "exit 1\r
" 作者: 93846273 时间: 2013-02-18 17:30 回复 10# fufelixzh
非常感谢!