gpt4 book ai didi

bash - 在 bash 脚本中自动确认 EULA

转载 作者:行者123 更新时间:2023-11-29 09:41:48 25 4
gpt4 key购买 nike

我正在编写一个 bash 脚本,该脚本应该进行一些确认并安装软件。安装过程的第一步是要求我确认 EULA 并输入"is"。有没有办法从 bash 脚本中获取"is"?

最佳答案

命令yes输出指定字符串的永无止境的流,如果未指定则输出y

$ yes | headyyyyyyyyyy$ yes yes | ./interactive-installer  # something like this?

关于bash - 在 bash 脚本中自动确认 EULA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2384379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com