分页: 1 / 1

expect用法

发表于 : 2012-06-21 21:12
罗非鱼
cd /home/debian/goagent
python ./server/uploader.zip

expect -c "
set timeout 5

expect {
timeout exit
\"APPID:\"
}
send \"haha\r\"

为何这个脚本运行的时候,光标一直停留在APPID:处?
好像没有输入haha?
我的这段代码有错误吗?