自动“按Enter退出”猛击? [英] Automatically "Press Enter to Exit" in bash?

查看:89
本文介绍了自动“按Enter退出”猛击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在bash脚本中,我正在使用wine来调用DOS程序,该程序需要我按 Enter 退出。如何自动执行此操作并继续执行脚本的其余部分?

In a bash script, I'm using wine to call a DOS program that requires me to "Press Enter to exit". How do I do that automatically and continue with the rest of the script?

推荐答案

echo | wine dosprogram.exe

echo | wine dosprogram.exe

这篇关于自动“按Enter退出”猛击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆