记一次datax在ubuntu下cron出现 /bin/sh:
2018-09-13 本文已影响0人
Mervyn_2014
解决方式:创建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