expect用法

sh/bash/dash/ksh/zsh等Shell脚本
回复
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

expect用法

#1

帖子 罗非鱼 » 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?
我的这段代码有错误吗?
回复