######
linux auto control
##
###### at
at -f FILE -m -l -d -v TIME
select queue: atq
manage queue: atrm
manage at: /etc/at.allow /etc/at.deny
###### cron
cron file expression
MIN HOUR DAY MONTH DOW COMMAND
0-59 0-23 0-31 0-12 0-7 run-path
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
# */1
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
# 目录方式: * * * * root run-parts /etc/[dictory] 执行该目录下所有可执行文件
# 常规模式: * * * * runScript
manage contab: /etc/cron.allow /etc/cron.deny
###### anacron /etc/anacron
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
#PID DELAY(min) JOB_ID COMMAND ANACRONTAB
1 65 cron.daily run-parts /etc/cron.daily
7 70 cron.weekly run-parts /etc/cron.weekly
30 75 cron.monthly run-parts /etc/cron.monthly
linux auto control
##
###### at
at -f FILE -m -l -d -v TIME
select queue: atq
manage queue: atrm
manage at: /etc/at.allow /etc/at.deny
###### cron
cron file expression
MIN HOUR DAY MONTH DOW COMMAND
0-59 0-23 0-31 0-12 0-7 run-path
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
# */1
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
# 目录方式: * * * * root run-parts /etc/[dictory] 执行该目录下所有可执行文件
# 常规模式: * * * * runScript
manage contab: /etc/cron.allow /etc/cron.deny
###### anacron /etc/anacron
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
#PID DELAY(min) JOB_ID COMMAND ANACRONTAB
1 65 cron.daily run-parts /etc/cron.daily
7 70 cron.weekly run-parts /etc/cron.weekly
30 75 cron.monthly run-parts /etc/cron.monthly