如何在bash脚本中编写接受许可协议的脚本
#!/bin/bash
# To install java and jre
sudo apt-get install sun-java6-jdk sun-java6-jre
# END
安装java和jre时,它会询问“许可协议”。如何编写脚本来接受许可协议。
#!/bin/bash
# To install java and jre
sudo apt-get install sun-java6-jdk sun-java6-jre
# END
While installing java and jre it will ask "Licence Agreement". How to write script to accept licence agreement.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
(部分来自此处 了解背景信息)
我强烈推荐
对于此类问题。 PaaS 计算是寻找自动部署脚本的地方:)
(partly from here for background info)
I highly recommend
for this kind of question. PaaS computing is the place to look for automatic deployment scripts :)
您可以使用期望:
You can use expect: