I went to
/var/log/cron but this file is empty.
How to check if crontab is enabled or is running properly or not in ubuntu
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
If you want to know if it's running you can do something like
sudo status cron or
ps aux | grep cron.
If you want to know if your cron jobs are running, check
/var/log/syslog with the process name cron. For example:
Apr 26 21:17:01 example CRON: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
sudo service rsyslog restart
service cron restart
now you can check cron log from file
By default the cron log in Ubuntu is located at
/var/log/syslog. Use the below command to check the cron entries in this file.
grep cron /var/log/syslog