title: How to install crontab on Centos
body: <p>I am familiar to setup the cron scheduler using <code>crontab -e</code> command on my <code>centos</code>. But today I found one of my <code>centos</code> servers doesn't have this command</p>
  
  <p>I have tried to install this using <code>yum install crontab</code> but no luck. Then I tried <code>yum install crontabs</code> and it installed something</p>
  
  <pre><code>=============================================================================
   Package                 Arch       Version          Repository        Size 
  =============================================================================
  Updating:
   crontabs                noarch     1.10-11.el5      base              7.0 k
  
  Transaction Summary
  =============================================================================
  Install      0 Package(s)         
  Update       1 Package(s)         
  Remove       0 Package(s)         
  
  Total download size: 7.0 k
  Is this ok [y/N]:
  </code></pre>
  
  <p>But still the <code>crontab</code> command doesn't work. If I do <code>cat /etc/crontab</code> then it shows below thing</p>
  
  <pre><code>SHELL=/bin/bash
  PATH=/sbin:/bin:/usr/sbin:/usr/bin
  MAILTO=root
  HOME=/
  
  # run-parts
  40 * * * * root run-parts /etc/cron.hourly
  54 1 * * * root run-parts /etc/cron.daily
  14 3 * * 0 root run-parts /etc/cron.weekly
  38 1 16 * * root run-parts /etc/cron.monthly
  </code></pre>
  
  <p>What should I do to have <code>crontab</code> on that particular server? I am using <code>CentOS release 5.2 (Final)</code>.</p>
  
  <p>grep on cron shows:</p>
  
  <pre><code>[root~]# ps -ef | grep cron
  root     24022 24001  0 19:07 pts/1    00:00:00 grep cron
  </code></pre>
  
  <p>starting cron service returns: </p>
  
  <pre><code>[root~]# service cron start
  cron: unrecognized service
  </code></pre>