问题描述
我有一个有趣的问题。我正在使用Expect模块来安装应用程序。一切正常,直到最后一个问题。
它确实是这样的。
Enter the default profile name [default] followed by a blank line:
<cursor starts here no at the semi colon>
,如果您手动执行,则响应看起来像这样。 (是的,我知道它很傻,但是二进制安装的方式-我无法控制它)
Enter the default profile name [default] followed by a blank line:
default
The application is now installed message.
由于光标下降到下面的行而导致错误。现在,我尝试做这样的事情
expect:
'':'default'
但是它出错了。还有其他方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)