#!/bin/bash

OUTPUT='/tmp/statusmail.txt'
START="$(date +%s)"
ESUBJ="$KMINFO_MacroName"
export ESUBJ

echo "" > ${OUTPUT}
/bin/bash $HOME/Dropbox/bin/presleep_quitapps >> ${OUTPUT}
/usr/bin/python3 $HOME/Dropbox/bin/send_status_mail3.py
DURATION=$[ $(date +%s) - ${START} ]
#cat /tmp/wakemaints.txt | fgrep "Wake reason"
rm ${OUTPUT}
sleep 30
