When performing scheduled tasks under Linux system, it suddenly prompts bash: crontab: command not found. Most of the problems are caused by not installing crontab. Just install crontab under Linux system to solve the problem.
crontab installation steps:
1. Confirm crontab is installed:
execute crontab command if the message command not found, it indicates not installed
2. Installing crontab
The installation process is as follows
[root@10vps ~]# crontab -e
-bash: crontab: command not found
[root@10vps ~]# yum install -y vixie-cron
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* rpmforge: ftp.riken.jp< Br>
base |
3.7 kB 00:00
extras |
3.4 kB 00:00
rpmforge |
1.9 kB 00:00
rpmforge/primary_db |
2.7 MB 00:02
updates |
3.4 kB 00:00
updates/primary_db |
3.2 MB 00:13
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---》 Package cronie.x86_64 0 :1.4.4-12.el6 will be installed
--" Processing Dependency: dailyjobs for package: cronie-1.4.4-12.el6.x86_64
--" Running transaction check
--- Package cronie-anacron.x86_64 0:1.4.4-12.el6 will be installed
--" Processing Dependency: crontabs for package: cronie-anacron-1.4. 4-12.el6.x86_64
--> Running transaction check
--- Package crontabs.noarch 0:1.10-33.el6 will be installed
- -> Finished Dependency Resolution
Dependencies Resolved
================================ ========================================================== Br>
Package Arch Version Repository Size
=========================================== ========================================================== p> Install Ing:
cronie x86_64 1.4.4-12.el6 base 73 k
Installing for dependencies:
cronie-anacron x86_64 1.4.4-12.el6 base 30 k
crontabs noarch 1.10-33.el6 base 10 k
Transaction Summary
===================== =========================================================== ==========
Install 3 Package(s)
Total download size: 114 k
Installed size: 220 k
Downloading Packages:
(1/3): cronie-1.4.4-12.el6.x86_64.rpm |
73 kB 00:00
(2/3): cronie-anacron-1.4.4-12.el6.x86_64.rpm |
30 kB 00:00
(3/3): crontabs-1.10-33.el6.noarch.rpm |
10 kB 00:00
--------------------------------------- -----------------------------------------
Total 15 kB /s |
114 kB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : cronie-1.4 .4-12.el6.x86_64 1/3
Installing : crontabs-1.10-33.el6.noarch 2/3
Installing : cronie-anacron-1.4.4-12.el6 .x86_64 3/3
Verifying : crontabs-1.10-33.el6.noarch 1/3
Verifying : cronie-anacron-1.4.4-12.el6.x86_64 2/3< Br>
Verifying : cronie-1.4.4-12.el6.x86_64 3/3
Installed:
cronie.x86_64 0:1.4.4-12.el6
Dependency Installed:
cronie-anacron.x86_64 0:1.4.4-12.el6 crontabs.noarch 0:1.10-33.el6
Complete!
[root@10vps ~]# crontab -l
no crontab for root
3. Confirm that the installation was successful:
Execute crontab -l< Br>
4. See if auto-start is set up
chkconfig --list crond
5. Start crontab
service crond start
The above is the Linux implementation of the scheduled task error report needs to install crontab, this method is suitable for most bash: crontab: command not found error.
In Linux, OpenVPN is a good open source VPN, so it is widely used. However, many us
We all know that VMware is a virtual machine that can load a variety of systems, but when VMware clo
Git is a distributed version control system, and GitHub is a Git-based website that
MPI is a multi-excuses, need to build mpi environment when using Ubuntu, the following small series
What should I do if the Linux crontab has a BAD FILE MODE error?
How to initialize the CentOS server
How Linux uses the kill command to force a process to terminate
What should I do if the Windows and Virtualbox port number mapping fails?
Ubuntu 13.10 steps to open VLC desktop notifications
Linux tips for viewing directory content
How to install vsftpd server under Linux
Learn about the role of Linux mail commands through examples
Solution for unusable xmanager passive function under Linux
How to solve the problem after unable to connect to the network after reinstalling Linux
Win8.1 system blue screen prompts KERNEL SESURTY CHECK FAILURE fault cause and solution
What should I do if Baidu Guardian does not add gold coins in win10 system?
Large size magnetic stickers will come with WP10
Windows 7 disables the sticky key when you double-click the Shift key
Win8.1 system enters "safe mode"
Win10 first anniversary update pc version brings six breakthrough innovative features
Windows XP system auto-restart problem detailed analysis
Simple two strokes to achieve the left side of the IE 9 Favorites