Hi On 6/10/09, James Bensley jwbensley@gmail.com Hi all,
I don't know what exactly is causing this, but I can't find cron / crontab on my CentOS 5.3 machine.
Yes, I know, it's an obvious one, install it. But, it is, according to rpm: [root@zaxen01 ~]# rpm -aq | grep cron anacron-2.3-45.el5.centos crontabs-1.10-8
I have tried yum update crontabs, and then it said there was no updates. yum update all also said there's no updates.
Yet, when I run cron or crontab it doesn't work:
[root@zaxen01 ~]# crontab -bash: crontab: command not found [root@zaxen01 ~]# which cron /usr/bin/which: no cron in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root@zaxen01 ~]# which crontab /usr/bin/which: no crontab in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root@zaxen01 ~]# ll /etc/cron cron.d/ cron.hourly/ crontab cron.daily/ cron.monthly/ cron.weekly/
Am I missing something here? Any pointers on this would be appreciated :)
_____________ Kind Regards Rudi Ahlers CEO, SoftDux Hosting Web: http://www.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532
On Wed, Jun 10, 2009 at 12:55 PM, Bent Terp bent@nagstrup.dk wrote:
Am I missing something here?
vixie-cron? [root@misc ~]# rpmquery --whatprovides $(which crontab) vixie-cron-4.1-76.el5
BR Bent _______________________________________________
mmm, I didn't think of that:
[root@zaxen01 ~]# rpmquery --whatprovides $(which crontab) /usr/bin/which: no crontab in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sb in:/usr/bin:/root/bin) rpmquery: no arguments given for query [root@zaxen01 ~]# yum install vixie-cron
Resolving Dependencies --> Running transaction check ---> Package vixie-cron.x86_64 4:4.1-76.el5 set to be updated --> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================== Package Arch Version Repository Size =============================================================================================== Installing: vixie-cron x86_64 4:4.1-76.el5 base 80 k
Transaction Summary =============================================================================================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 80 k Is this ok [y/N]: y
Installed: vixie-cron.x86_64 4:4.1-76.el5 Complete!
[root@zaxen01 ~]# rpmquery --whatprovides $(which crontab) vixie-cron-4.1-76.el5
[root@zaxen01 ~]# cron crond crontab
Cool, thanx, now it's working again :)
So, what exactly does the crontabs rpm do then?
Rudi Ahlers wrote:
On Wed, Jun 10, 2009 at 12:55 PM, Bent Terp <bent@nagstrup.dk mailto:bent@nagstrup.dk> wrote:
> Am I missing something here? vixie-cron? [root@misc ~]# rpmquery --whatprovides $(which crontab) vixie-cron-4.1-76.el5
mmm, I didn't think of that:
<snip>
So, what exactly does the crontabs rpm do then?
rpm -qi crontabs rpm -ql crontabs