commit 9cf548b35628b09ca992ab7c0d7c673950f3b7e0 parent 6e3b08ddea123f036478e4c45a249cf62d060c28 Author: dwrz <dwrz@dwrz.net> Date: Thu, 27 Oct 2022 20:04:45 +0000 Add alert script Diffstat:
A | scripts/alert | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/scripts/alert b/scripts/alert @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +readonly RECIPIENT="" + +main() { + echo "${HOSTNAME}: motion detected at $(date '+%Y-%m-%dT%H:%M:%S%:z')." | \ + mutt -s "${HOSTNAME}: Motion Detected" \ + -- "${RECIPIENT}" +} + +main "$@"