Page 1 of 1

Email notification on errors

PostPosted: Sun Feb 19, 2017 8:37 am
by andrea_ga
Is it possible to have Hazel send an email when there is an error?
I already activated the options to post in Notification Center for all Errors, File Events and Trash Events, but I am not always in front of the computer to catch that.
In particular, I am referring to rules that execute shell scripts. Those appear in the log as, for example,

2017-02-19 11:11:05.326 hazelworker[90454] [Error] Shell script failed: Error processing shell script /Users/andrea/Dropbox/BCM/disegna_R.sh on file /Users/andrea/Dropbox/BCM/Battito_pressione.txt.
2017-02-19 11:11:05.327 hazelworker[90454] Shellscript exited with non-successful status code: 1

Is there a way to catch those exit statuses, other than modify the shell script themselves?

Thanks in advance

Re: Email notification on errors

PostPosted: Mon Feb 20, 2017 11:46 am
by Mr_Noodle
Right now, modifying the script is the only way. Either that, or check your past notifications in Notification Center when you get back to your computer.

You can also use the rule status ui (the "eye" button) to get an overview of how your rules are running. Errors will be indicated there.

Re: Email notification on errors

PostPosted: Sun Mar 05, 2017 9:29 am
by andrea_ga
Understood, thanks