server-scripts/smartdnotify
2014-10-19 17:27:33 +02:00

8 lines
132 B
Bash
Executable File

#! /bin/sh
# Send mail
echo "$SMARTD_MESSAGE" | mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS"
# Notify user
wall "$SMARTD_MESSAGE"