Hey,
I was wondering what I need to to do enable crontab send mails to what is defined in its MAILTO variable? I already installed ssmtp package but without success..
Best
Hey,
I was wondering what I need to to do enable crontab send mails to what is defined in its MAILTO variable? I already installed ssmtp package but without success..
Best
How does your current crontab look like?
It looks like this
MAILTO="name@mailprovider.com"
0 4 * * * sh /root/somescript.sh
Try to get variable in somescript.sh:
echo $MAILTO >> /tmp/somescript.out
echo $MAILTO
Returns nothing.. seems like the MAILTO-variable is not set.
I am running OpenWrt 18.06.2, r7676-cddd7b4c77 on a TP-Link TL-WR1043N/ND v4.
Add to script
echo '123' >> /tmp/somescript.out
Maybe script itself is not started.