I am using cron job to run my shell script after every 2 minutes. My shell script contains pig and hive scripts. I am searching the person with high risk using my hive query and i can get their email id from my hive table, i want to know if i can send mail to the person and how ? I checked on the internet but not able to understand properly, it would be a great help if you guys help me in this. Thanks
Asked
Active
Viewed 2,737 times
1 Answers
0
This code solves my problem
$ echo "hello world" | mail -s "a subject" [email protected]

Ironman
- 1,330
- 2
- 19
- 40