Monday, January 27, 2014

How to fix "-bash: crontab: command not found" error on CentOS 6.x

Suppose your getting the below error on CentOS box.

[root@server ~]# crontab -l
-bash: crontab: command not found

[root@server ~]# crontab -e
-bash: crontab: command not found

Step1 : INSTALL CRONTAB ON CENTOS 6.x
#yum install *cron*

Step2 : Enable the package on boot and start
# /sbin/chkconfig crond on

Step3: Start the service by
# /etc/init.d/crond start
             or
# service crond start