Linux Crontab定时执行脚本出错,但手动执行脚本正常原因及解决方案
shell脚本前面加入如下内容:
source /etc/profile
source ~/.bash_profile
参考地址:https://blog.csdn.net/Urbanears/article/details/128495001
shell脚本前面加入如下内容:
source /etc/profile
source ~/.bash_profile
参考地址:https://blog.csdn.net/Urbanears/article/details/128495001