Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.