- 论坛徽章:
- 84
|
是的默认发邮件的,-s 发送到系统日志:
CRON( System Administration CRON(
NAME
crond - daemon to execute scheduled commands
SYNOPSIS
crond [-c | -h | -i | -n | -p | -P | -s | -m<mailcommand>]
crond -x [ext,sch,proc,pars,load,misc,test,bit]
DESCRIPTION
Cron is started from /etc/rc.d/init.d or /etc/init.d when classical sysvinit scripts are used. In case systemd is enabled, then unit file is
installed into /lib/systemd/system/crond.service and daemon is started by systemctl start crond.service command. It returns immediately,
thus, there is no need to need to start it with the '&' parameter.
Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; The found crontabs are loaded into the mem‐
ory. Cron also searches for /etc/anacrontab and any files in the /etc/cron.d directory, which have a different format (see crontab(5)).
Cron examines all stored crontabs and checks each job to see if it needs to be run in the current minute. When executing commands, any out‐
put is mailed to the owner of the crontab (or to the user specified in the MAILTO environment variable in the crontab, if such exists). Any
job output can also be sent to syslog by using the -s option.
|
|