5分运行

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
~                                                              

你可能感兴趣的:(5分运行)