bash – the script can not be run from cronjob, but works manually

I managed to create a working script to collect information from a connection protected site to which I belong. I'm waiting for the script to work on cronjob but it does not work.

Is there anything I'm doing wrong here?

#! / bin / bash

COOKIES = "kukis.txt"

curl -k $ COOKIES --data "userid = $ (sed -n 1p /home/reza/Videos/.ktsandi.txt)&pass=$(sed -n 2p /home/reza/Videos/.ktsandi.txt ) "https://my.smartfren.com/mysmartfren_login/login


LOG = "frenlog.html"

until curl https: //my.smartfren.com/mysmartfren_home' -H & # 39; User Agent: Mozilla / 5.0 (X11; Linux x86_64) AppleWebKit / 537.36 (KHTML as Gecko) Ubuntu Chromium / 72.0.3626.121 Chrome / 72.0. 3626,121 Safari / 537.36 - H & # 39; Accept: text / html, application / xhtml + xml, application / xml; q = 0.9, image / webp, * / *; q = 0.8--H & # 39; Accept-Language: en-US, en; q = 0.5 - - compressed -H & # 39; Referent: https://my.smartfren.com/mysmartfren_login -H & # 39; Connection: keep-alive & # 39; -b $ COOKIES -H & # 39; Upgrade-Unsafe-Queries: 1 -H & # 39; Cache-Control: max-age = 0 & # 39; &> / dev / stdout | tee -a $ LOG
make
echo "$ (date +% d /% m /% Y ') - Failed to execute, retrying shortly" >> /home/reza/testfren/skrip.log
done && rm / home / reza / testfren / $ {COOKIES}

# EMAIL DATA
RECIPIENT = "danil.cahyadi@gmail.com"
MAILER = "rezanas_tion@gmail.com"
SUBJECT = "Product Information"

# SORT ...
MAIL = "frendata.html"

expDateBonus = "16/04/2019 23:59:58"
expDate = "05/05/2019 23:59:58"

if [[ $(date "+%d/%m/%Y %H:%M:%S") == $expDateBonus ]]|| [[ $(date "+%d/%m/%Y %H:%M:%S") == $expDate ]]then


grep -A1 -E "Bonus data|Midnight Internet"$ LOG | sed" / - / d "| sed -n 3.4p; 7.8p >> $ MAIL

other


grep -A1 -E "Bonus data|Midnight Internet"$ LOG | sed" / - / d ">> $ MAIL
Fi

#MAIL SENDING

(
echo To: $ RECIPIENT
From: $ MAILER
echo "Content Type: text / html;"
echo Subject: $ SUBJECT
echo Quota internet remaining from $ (date "+% d /% m /% Y")
echo
$ MAIL cat
) | sendmail -t && rm $ MAIL $ LOG