Cronjob: Send mail only on fail

thomas-hn

Member
Oct 26, 2021
42
11
13
45
Hello,

is there a possibility when running a cron job to only send the E-Mail at the end if the cron job has failed?
I'm thinking of a feature, that depending on the return value of the executed command/script the E-Mail is generated or not.

Thanks a lot in advance,

Thomas