My Awesome Config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
430 B

#!/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