How to check in Linux cron is working or not?

The most convient way is to login via SSH to your server and check it in console.
For Centos 7+ (RHEL) we will need to use the following command:

$ systemctl status crond.service

It will find out if the crond is running or not.

As a result it gives the following sample output:

[root@tookassa ~]# systemctl status crond.service
* crond.service - Command Scheduler
   Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2016-06-03 06:45:02 EDT; 6 months 12 days ago
 Main PID: 158 (crond)
   CGroup: /system.slice/crond.service
           `-158 /usr/sbin/crond -n

Dec 09 11:33:01 tookassa crond[158]: (kassa.ee) RELOAD (/var/spool/cr...u)
Dec 09 11:38:01 tookassa crond[158]: (kassa.ee) RELOAD (/var/spool/cr...u)
Hint: Some lines were ellipsized, use -l to show in full.

If it not running, you may configure the crond service to start automatically on boot:

$ sudo systemctl enable crond.service
$ sudo systemctl start crond.service

Looking for a custom solution?

Our technicians can provide you with the best custom made solutions on the market, no matter whether you're a small business or large enterprise.

Get in touch