.awesome/mail_loop.sh

17 lines
430 B
Bash
Executable File

#!/bin/bash
# mymail_gmail_loop.sh
MAILDIR=/tmp/$USER-mail_loop
while [ 1 ]; do
mkdir --mode=700 $MAILDIR 2>/dev/null
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
if [[ "$val" == "" ]]; then val = "?"; fi
echo $val > $MAILDIR/mymail_count
sleep 30
#val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_gmail.py)
#if [[ "$val" == "" ]]; then val = "?"; fi
#echo $val > $MAILDIR/gmail_count
#sleep 30
done