How to see logs of crontab in Ubuntu Back

1. setup the logs of crontab

# sudo vim /etc/rsyslog.d/50-default.conf
# remove the '#' before cron.*  /var/log/cron.log

cron.*              /var/log/cron.log

2. restart the server

sudo  service rsyslog  restart

2. see the logs

vim /var/log/cron.log

results matching ""

    No results matching ""