I don't see the cause, but maybe I can help you to find it:
Add to the end of your crontab line the following
>/tmp/myLog.
By inspecting the two files after the defined time has passed you will most probably find the problem.
regards, Roland
--- In nslu2-linux@
>
> Hello,
>
> I made un script to send mail.
> My script works executing in shell but not in crontab.
> I also add full path for binaries but it's the same.
>
> Can someone help me ?
>
> ***BASH SCRIPT send_mail.sh :
>
> #!/opt/bin/bash
>
> nail='/usr/bin/
> sleep='/bin/
> echo='/bin/echo'
>
>
> function mail_status ()
> {
> ${sleep} 1
> ${echo} $1 $2 | ${nail} -s "save_sites_
> #echo $? > /tmp/testestest_
> }
>
> #### DEBUG TESTS ####
>
> mail_status "Test" "succes";
>
> ***CRONTAB LINE :
>
> 33 23 * * * /opt/bin/bash /temp/testmail/
>
Sunday, November 22, 2009
[nslu2-linux] Re: [openslug] Send mail with nail in crontab
__._,_.___
.
__,_._,___
No comments:
Post a Comment