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 have a server running CentOS 6.2 minimal, but it doesn't appear to have crontab installed by default?

crontab -e
-bash: crontab: command not found

In searching google, I found references to a "vixie-cron" and "anacronda" but no complete answer on what the official/supported way of getting cron to work on CentOS 6 is.

Maybe someone can shed some light on this?

update:

rpm -qf `which crontab`
/usr/bin/which: no crontab in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
rpm: no arguments given for query
share|improve this question
1  
You can't which something that doesn't exist on your host. I think what you are looking for is yum provides */crontab. –  Aaron Copley Aug 9 '12 at 22:40
add comment

1 Answer

up vote 11 down vote accepted
# rpm -qf `which crontab`
cronie-1.4.4-7.el6.x86_64

Vixie-cron was replaced with Cronie in EL6. Likely it wasn't installed in your "minimal" installation; they really do strive to be minimal with it.

share|improve this answer
    
Thanks, yum install cronie seems to have done the trick. Do you know how to set which editor crontab -e uses by default? –  Nick Aug 9 '12 at 22:42
    
That's a separate question. Read it here. –  Michael Hampton Aug 9 '12 at 22:57
3  
It looks like I also have to do service crond start and chconfig crond on, regarding this question. Thanks for the other answer, got it working. –  Nick Aug 9 '12 at 23:22
1  
The correct command is: chkconfig crond on not chconfig ..., otherwise thanks for reminding. –  Dae Mar 24 '13 at 21:33
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.