[centos6.2] crond 计划任务

来源:互联网 发布:微信加粉软件靠谱吗 编辑:程序博客网 时间:2024/05/18 01:23
1  每五分钟运行一次脚本
   */5 * * * *  root  /root/test/test.sh


2  3:00 4:00 5:00 6:00  运行一次 /root/test/test.sh
   0 3-6 * * *  root  /root/test/test.sh


3  每小时的第5分钟执行一次test.sh
   5 * * * *   root  /root/test/test.sh


4  每天的5点30 执行一次 test.sh
   30 5 * * *  root  /root/test/test.sh


5  每月8号7点30 执行一次 test.sh
   30 7 8 * *  root  /root/test/test.sh


6  每年6月8号5点30 执行一次 test.sh
   30 5 8 6 *  root  /root/test/test.sh
  
7  每周日6:30 执行 test.sh
   30 6 * * 0  root  /root/test/test.sh


8  每天10:45-10:54期间每分钟执行一次 view-test.sh
   45-54/1 10 * * *  root   /root/test/view-test.sh