5分运行

来源:互联网 发布:matlab矩阵 公式运算 编辑:程序博客网 时间:2024/04/28 12:05

vi /etc/crontab

 

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
30 19 * * * root /bin/bash /usr/local/bin/clear_log.sh
*/2 * * * * root /bin/sh /usr/local/bin/XXX.sh
*/2 * * * * root /bin/sh /usr/local/bin/XXX.sh
~                                                              

原创粉丝点击