crontab每隔3天怎么写
时间: 2023-10-31 20:53:03 浏览: 238
回答: 要在crontab中设置每隔3天执行一次任务,可以使用以下格式:0 0 */3 * * command。其中,0 0表示每天的午夜零点,*/3表示每隔3天,*表示每个月,*表示每个星期。command是要执行的命令或脚本。所以,要在crontab中设置每隔3天执行一次任务,可以使用0 0 */3 * * command。
#### 引用[.reference_title]
- *1* [crontab实现每隔多少天执行一次脚本的两种方法](https://blog.csdn.net/weixin_39827034/article/details/111837209)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [crontab中如何实现每隔多少天执行一次脚本](https://blog.csdn.net/chongke5244/article/details/100736740)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [linux,使用crontab设置每三天备份docker数据卷脚本](https://blog.csdn.net/qq_31755699/article/details/119932262)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文