crontab执行不生效

背景:不知道什么原因脚本手动执行:正常;crontab执行不生效;

1.将命令所属路径加入到 /etc/crontab中,

2.在shell脚本中加入 source /etc/profile

posted @ 2021-10-08 09:08  再见傅里叶  阅读(1197)  评论(0编辑  收藏  举报