问题
Does any body know where is the STDOUT and STDERR of a normal crontab job output in CentOS?
I checked the /var/log/cron
file, but it only record the time and command of a cron job executed, no STDOUT or STDERR content found there.
回答1:
Have a look on
/etc/rsyslog.d/
there you should can change loglevel of cron .
#cron.* /var/log/cron.log
removing the # = maximum logging
cron.err /var/log/cron.log
only error log
来源:https://stackoverflow.com/questions/28067714/where-is-the-stdout-and-stderr-output-of-a-crontab-job