Email notification on errors

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Email notification on errors 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
andrea_ga
 
Posts: 6
Joined: Sun Jun 30, 2013 8:18 am

Re: Email notification on errors 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Email notification on errors Sun Mar 05, 2017 9:29 am • by andrea_ga
Understood, thanks
andrea_ga
 
Posts: 6
Joined: Sun Jun 30, 2013 8:18 am


Return to Support