【发布时间】:2017-03-28 19:40:08
【问题描述】:
在 bash 脚本中运行期望脚本时出错
输入:
{
/usr/bin/expect << EOF
spawn ssh execsped@10.150.10.194 "cd /home/execsped/ram_test_72;./testecho.sh \"$evenno\" \"$eisinno\" \"$efilename\""
expect "Password"
send "abc@123\r"
expect "*#*"
EOF
}
输出:
extra characters after close-quote
while executing
"spawn ssh execsped@10.150.10.72 "cd /home/execsped/evoting_test_72;./testecho.sh "10575" "_eVoting.pdf" "abc.pdf"
"
【问题讨论】:
标签: linux shell unix expect aix