[fwj@rhca ~]$ atq 3 Sun Apr 2314:18:00 2017 a fwj [fwj@rhca ~]$
3.删除
[root@rhca ~]# atrm 4 [root@rhca ~]# atq
crontab
1.查看服务状态
[root@rhca ~]# systemctl status crond.service ● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2017-04-2314:16:31 CST; 4min 28s ago Main PID:1173 (crond) CGroup:/system.slice/crond.service └─1173/usr/sbin/crond-n
Apr 2314:16:31 rhca systemd[1]: Started Command Scheduler. Apr 2314:16:31 rhca systemd[1]: Starting Command Scheduler... Apr 2314:16:31 rhca crond[1173]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 28% if used.) Apr 2314:16:34 rhca crond[1173]: (CRON) INFO (running with inotify support)
###主要配置文件
全局配置文件:/etc/crontab
系统默认的设置: /etc/cron.*/
用户定义的设置: /var/spool/cron/user
格式
# For details see man 4 crontabs
# Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed