BASH XXX.SH >>LOG&
时间: 2023-11-08 13:55:29 浏览: 207
clean-cluster-logs.sh
在脚本中执行"BASH XXX.SH >>LOG&"命令的意思是将脚本xxx.sh以bash作为解释器执行,并将输出结果追加到一个名为LOG的文件中,同时在后台运行。这样做可以将脚本的输出保存到日志文件中,而不会在终端中显示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [nohup sh start.sh >/dev/null 2>&1 &](https://blog.csdn.net/weixin_44256848/article/details/109812280)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [clean-cluster-logs.sh](https://download.csdn.net/download/zhanglp0125/11275795)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文