I don't have real differences between the two files, unless the PATH.
But adding PATH to my script doesn't change anything.
No LD_LIBRARY_PATH given in env.
--- In nslu2-linux@
>
> 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
>
Monday, November 23, 2009
[nslu2-linux] Re: [openslug] Send mail with nail in crontab
__._,_.___
MARKETPLACE
.
__,_._,___
No comments:
Post a Comment