Most likely your environment is different than the one of the user
running this cronjob
Therefore add an env debug statement to the crontab. Check your path to
the env binary.
It is /usr/bin/env linked to opt/bin/env on my slug
33 23 * * * /opt/bin/env > 1>/tmp/env.log 2>&1
You will then use env in your shell and dump output again to a file
env 1>~/env.log 2>&1
then diff both files
diff /tmp/env/log ~/env.log
and you will see that e.g. your LD_LIBRARY_PATH and other settings differ.
You need to adjust you settings either inside the crontab or source and
environment inside cron prior to executing nail.
Once done remove the env line in cron.
Marc
__._,_.___
.
__,_._,___
No comments:
Post a Comment