用户工具

站点工具


linux:crontab

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
linux:crontab [2017/02/01 17:00] – 创建 memorylinux:crontab [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
 ====== crontab ====== ====== crontab ======
 +
 +===== Usage =====
 +
  
 Edit current user's crontab: Edit current user's crontab:
行 9: 行 12:
   crontab -l   crontab -l
  
-Rule:+Rule, verify website: https://crontab.guru/ :
  
   0 0 * * * "command"   0 0 * * * "command"
行 31: 行 34:
  
 ''*/'' means **every x [classifier]**, ''*/3 [Hour field]'' means every 3 hours. ''*/'' means **every x [classifier]**, ''*/3 [Hour field]'' means every 3 hours.
 +
 +===== Tips =====
 +
 +Remember set envirnment at the begining of the code.
 +
 +<code>
 +SHELL=/bin/bash
 +LANG=zh_CN.UTF-8
 +LC_ALL=zh_CN.UTF-8
 +
 +0 * * * * /data/backup.sh
 +</code>
linux/crontab.1485939613.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)