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 tried to setup a cron job in my new CentOS VPS server over SSH. I typed in the command

crontab -e and I got the following error message:-

-bash: anacrontab: command not found

Any idea how I can set up cron job in CentOS?

*** CentOS release 5.8 (Final)

share|improve this question
Can you run which crontab ? – cjc Oct 19 '12 at 12:59

It looks like crontab is an alias of anacrontab that doesn't exist. You can run the 'real' command by preceding it with a backslash \:

\crontab -e
share|improve this answer

Are you sure that cron software is loaded? Do

yum list|grep cron

Do you see something like

anacron.x86_64                           2.3-45.el5.centos            installed 
crontabs.noarch                          1.10-8                       installed 
vixie-cron.x86_64                        4:4.1-77.el5_4.1             installed 
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.