05-07-2017 09:33 PM
I am running a shell script through oozie. A piece of my shell script has below code. I receive an email when I run this shell script through unix Command line but when I run this shell script through oozie Job it will succeed but I dont get any mail. How can I resolve this? Or is there any alternative way I can get email with attachment once string matches in unix filesystem?
if [ "$Var" = "Error" ] then echo "Data error" | mail -v -s "Data Error" -a error.csv -S smtp=smtp://mail-gateway -S firstname.lastname@example.org" Kevin@gmail.com exit
06-07-2017 11:33 PM
Do you receive email when you run the mail command manually on different worker nodes in your cluster (remember shell action will run on a randomly assigned worker node)?
06-14-2017 01:38 AM