diff --git a/scripts/alert b/scripts/alert new file mode 100755 index 0000000..e02c90c --- /dev/null +++ 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 "$@"