Where is the output of STDOUT and STDERR of the crontab job

Does anyone know where STDOUT and STDERR are for crontab to work properly on CentOS?

I checked the file / var / log / cron , but it only records the time and command of the cron job that is running, the contents of STDOUT or STDERR were not found there.

thank!

+4
source share
1 answer

Take a look

/etc/rsyslog.d/

there you have to change loglevel cron.

#cron.*                /var/log/cron.log

delete # = maximum registration

cron.err                /var/log/cron.log

error log only

+1
source

All Articles