Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question
up vote 6 down vote accepted

If you want to 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[18055]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
share|improve this answer
Thanks buddy , i searc hed internet and they were sying the log file is /var/log/cron or cron.log , what is that file for – John Apr 28 '10 at 1:19
It all depends on how syslog is configured. Some distributions/Unix will split everything out, other dump just about everything into one file. – David Apr 30 '10 at 17:09
  1. modify rsyslog config: open /etc/rsyslog.d/50-default.conf,remove # before cron.*
  2. restart rsyslog service: sudo service rsyslog restart
  3. restart cron service: service cron restart

now you can check cron log from file /var/log/cron.log

share|improve this answer
This is great. Saves searching through the syslog – phocks Jul 10 at 1:56

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.