Sending Cron.log to mail

Abdelaziz

New Member
Joined
Aug 16, 2019
Messages
6
Reaction score
2
Credits
34
Hello,
I have a cron job running every 2 hours and generating a cron.log, I want to receive this log by mail after the cron job is end , I tried this
Bash:
0 */2 * * * /DATA/scripts/Daily_Script.sh &> /DATA/scripts/cron.log | mail -s "APP2_Monitoring_Log" [email protected]

, but I didn't receive anything .

Anyone knows what is wrong with this ?

Thank you
 



Members online


Top