解决方式:创建shell脚本 /opt/datax/job/xxxx.sh
#!/bin/bash
. /etc/profile
sh /opt/datax/job/xxx.sh
crontab -e
0 8 * * * sh /opt/datax/job/xxxx.sh >/dev/null 2>&1
解决方式:创建shell脚本 /opt/datax/job/xxxx.sh
#!/bin/bash
. /etc/profile
sh /opt/datax/job/xxx.sh
crontab -e
0 8 * * * sh /opt/datax/job/xxxx.sh >/dev/null 2>&1