Add alert script

This commit is contained in:
dwrz
2022-10-27 20:04:45 +00:00
parent 6e3b08ddea
commit 9cf548b356
Executable
+11
View File
@@ -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 "$@"