手动运行脚本执行正常而放入crontab后不正常

在crontab -e编辑时加入code . /etc/profile;/bin/sh #主要"."后要有个空格 #例子 0 12 * * * . /etc/profile;/bin/sh /your/sh/your_sh.sh
相关文章
相关标签/搜索