crontab执行脚本不成功手动执行成功

在shell脚本中添加

. /etc/profile

问题解决。

posted @ 2021-12-22 09:20  魔力的猪  阅读(204)  评论(0编辑  收藏  举报