Upon issuing crontab command got an error below
[root@shizune installer]# crontab -e
-bash: crontab: command not found
To Fix install crontabs package.
[root@shizune installer]# yum --enablerepo=remi install crontabs
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ossm.utm.my
* extras: ossm.utm.my
* remi: remi-mirror.dedipower.com
* updates: centosk3.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package crontabs.noarch 0:1.10-33.el6 will be installed
--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch
--> Running transaction check
---> Package cronie.x86_64 0:1.4.4-7.el6 will be installed
--> Processing Dependency: dailyjobs for package: cronie-1.4.4-7.el6.x86_64
--> Running transaction check
---> Package cronie-anacron.x86_64 0:1.4.4-7.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================
Installing:
crontabs noarch 1.10-33.el6 base 10 k
Installing for dependencies:
cronie x86_64 1.4.4-7.el6 base 70 k
cronie-anacron x86_64 1.4.4-7.el6 base 29 k
Transaction Summary
==================================================================================================================================================================
Install 3 Package(s)
Total download size: 110 k
Installed size: 211 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): cronie-1.4.4-7.el6.x86_64.rpm | 70 kB 00:00
(2/3): cronie-anacron-1.4.4-7.el6.x86_64.rpm | 29 kB 00:00
(3/3): crontabs-1.10-33.el6.noarch.rpm | 10 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 102 kB/s | 110 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : cronie-1.4.4-7.el6.x86_64 1/3
Installing : crontabs-1.10-33.el6.noarch 2/3
Installing : cronie-anacron-1.4.4-7.el6.x86_64 3/3
Verifying : crontabs-1.10-33.el6.noarch 1/3
Verifying : cronie-1.4.4-7.el6.x86_64 2/3
Verifying : cronie-anacron-1.4.4-7.el6.x86_64 3/3
Installed:
crontabs.noarch 0:1.10-33.el6
Dependency Installed:
cronie.x86_64 0:1.4.4-7.el6 cronie-anacron.x86_64 0:1.4.4-7.el6
Complete!
[root@shizune installer]# service crond start
Starting crond: [ OK ]
No comments:
Post a Comment