【发布时间】:2019-10-07 15:30:10
【问题描述】:
我有一个脚本,它可以正常工作,但最后,当它终止时,会产生这个错误:
interact: spawn id exp4 not open
while executing
"interact"
(file "./pippo.sh" line 8)
代码是:
#!/usr/bin/expect
# Spawn Python and await prompt
spawn mono OpenSim.exe
expect_background {
"Now recording all stats to file every {0}ms" { sleep 10 ; send "stats record stop\n" ; expect "Stopped recording stats to file." {sleep 5 ; send "quit\n"} }
}
interact
【问题讨论】: