Execute command and notify about failure via email
Go to file
2021-04-20 10:10:10 +02:00
.idea fix 2020-12-06 17:21:44 +01:00
execNotifyDir add notify 2020-12-26 15:15:54 +01:00
.gitignore add README 2020-12-06 16:59:16 +01:00
execNotify add notify 2020-12-26 15:15:54 +01:00
LICENSE Update 'LICENSE' 2021-04-20 10:10:10 +02:00
Makefile add notify 2020-12-26 15:15:54 +01:00
notify add notify 2020-12-26 15:15:54 +01:00
README.md improve README 2020-12-26 15:36:20 +01:00
requirements.txt add "make install" and other fixes 2020-12-06 16:40:03 +01:00

execNotify

Send notification on failure. Or send an unconditional notification.

setup

Create a config.ini file inside execNotifyDir/config.

For the required fields, see execNotifyDir/config/config.ini.example

installation

sudo make install

usage of execNotify

Add execNotify in front of your command to execute.

You can pipe into execNotify but not from execNotify as the output gets modified.

Example

For ls /home run execNotify ls /home

usage of notify

Send stdout via mail:

echo "Hello world!" | notify

Or with optional subject:

echo "Hello world!" | notify "someSubject"

Or without the pipe:

notify "someSubject" "Hello" "World!" "What's" "up?"

notify "someSubject" "Hello World! What's up?"