Linux Crontab定时执行脚本出错,但手动执行脚本正常原因及解决方案

shell脚本前面加入如下内容:

source /etc/profile
source ~/.bash_profile

参考地址:https://blog.csdn.net/Urbanears/article/details/128495001

posted @ 2023-03-06 10:54  宜家数据小哥  阅读(217)  评论(0编辑  收藏  举报