想用crontab每小时执行一次命令,这两个命令到底用哪个?

51次阅读

共计 573 个字符,预计需要花费 2 分钟才能阅读完成。

0 */1 * * * /etc/init.d/smb restart 这两个哪个是正确的?注意标红的地方 sunlight 2023-01-07 20:55 20 */1 * * * 一般都会先用 https://crontab.guru/ 去检查 莆田郑少斌 2023-01-07 20:56 3 Salta 2023-01-07 20:59 41 * * * * * /etc/init.d/smb restart 不应该是这样吗,?J0rmo 2023-01-07 20:59 50 * * * * /etc/init.d/smb restart 这样不就行了吗 a4425656 2023-01-07 21:01 6 宣传 2023-01-07 21:08 7https://tooltt.com/crontab/c/29.html adamlau 2023-01-07 21:11 80 * * * * 二楼正解 auto8624 2023-01-07 21:16 90 * * * *0 */1 * * * hchen 2023-01-07 21:21 10https://crontab.guru/#0_*/1_*_*_*0 */1 * * *next at 2023-01-07 22:00:00then at 2023-01-07 23:00:00then at 2023-01-08 00:00:00then at 2023-01-08 01:00:00then at 2023-01-08 02:00:00 复制代码

正文完
 0