Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 359 Bytes

crontablog.md

File metadata and controls

22 lines (15 loc) · 359 Bytes

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