下面是我正在运行并得到[y / n]提示符的命令,我想跳过下面要放入shell脚本的命令。
/opt/splunk/bin/splunk apply shcluster-bundle -target https://10.145.32.171:8089 --skip-validation
Warning: Depending on the configuration changes being pushed, this command might initiate a rolling restart of the cluster members. Please refer to the documentation for the details. Do you wish to continue? [y/n]:
我尝试如下所示,但仍然提示:
echo "y"|/opt/splunk/bin/splunk apply shcluster-bundle -target https://10.145.32.171:8089 --skip-validation
Warning: Depending on the configuration changes being pushed, this command might initiate a rolling restart of the cluster members. Please refer to the documentation for the details. Do you wish to continue? [y/n]: