macOS tools moving to my git
This commit is contained in:
14
presleep
Executable file
14
presleep
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user