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
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.