Linux-bash:crontab:command not found error resolution

Source: Internet
Author: User

Operation Steps

1. Confirm that crontab is installed:

Executing the crontab command if you report command not found, it indicates that you did not install

2. Install Crontab

Perform Yum install-y Vixie-cron

3. Confirm that the installation is successful:

Execute crontab-l

4. See if you have set up the automatic boot

Chkconfig--list Crond

5. Start crontab

Service Crond Start


If the installation is still not supported may be a permission issue

Whether the script is written correctly and whether the shell script has execute permissions. If everything is not working properly, use the following methods
Make root user's crontab effective

Crontab-u Root/var/spool/cron/root

Restart the crontab service

Service Crond Restart

Errors that may occur

"Cronfile1": 2:premature EOF
Errors in crontab file, can "T install.

Add a blank line at the end of the crontab file to resolve the problem.

"/tmp/crontab. NINM91 ": 1:bad Day-of-week
Errors in crontab File,can "T install

According to the tip, the first line of the week was written incorrectly.
Crontab-e Save, Crond will detect the time format, if the time format is not correct will be error errors in crontab File,can ' t install, or a very user-friendly settings.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.