在crontab -e编辑时加入. /etc/profile;/bin/sh #主要"."后要有个空格 #例子 0 12 * * * . /etc/profile;/bin/sh /your/sh/your_sh.sh