Troubleshooting of non-running crontab in Linux

Source: Internet
Author: User
Finally, let the old man encounter the problem of not executing crontab. my solution is debugging. First, crontab-e modifies its own automatic program. suppose it is Java code */1 ***** sh/home/blackwing.shwww.2cto.com. if it is found that it is not actually executed, then...
Finally, let the old man encounter the problem of not executing crontab. my solution is debugging. First, crontab-e modifies its own automatic program. assume it is the Java code */1 ***** sh/home/blackwing. sh www.2cto.com if it is found that it is not actually executed, it is likely that:
1. about the execution permission of shell scripts 2. if the script is written incorrectly, we recommend that you use absolute paths for commands and paths. The most intuitive thing is to see if there is any exception in program execution. The above automatic program is changed to: Java code */1 *** sh/home/blackwing. sh>/dev/null 2>/home/blackwing/errors. log www.2cto.com. log will know where the error occurred. The following method has been found for the environment variables mentioned on the Internet, but has not been implemented: add
Java code source ~ /. Bash_profile
Author BlackWing
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.