在尝试编写应自动提供输入的shell脚本时遇到了困难。
运行例如:adpatch.sh
它提示多个输入,如:
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? need to give input here
Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? need to give input here
Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? need to give input here
Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? need to give input here
所以不使用命令行参数,有没有其他方式自动输入? 在此先感谢。