Set timeout for the Mail Connections.
This commit is contained in:
parent
22477f02fd
commit
49e43b0cc2
|
@ -2,13 +2,15 @@
|
|||
# mymail_gmail_loop.sh
|
||||
|
||||
MAILDIR=/tmp/$USERNAME-mail_loop
|
||||
mkdir --mode=700 $MAILDIR
|
||||
mkdir --mode=700 $MAILDIR 2>/dev/null
|
||||
|
||||
while [ 1 ]; do
|
||||
val=$(~/.config/awesome/mail_loop_mymail.py)
|
||||
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
|
||||
if [[ "$val" == "" ]]; then val = "?"; fi
|
||||
echo $val > $MAILDIR/mymail_count
|
||||
sleep 30
|
||||
val=$(~/.config/awesome/mail_loop_gmail.py)
|
||||
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_gmail.py)
|
||||
if [[ "$val" == "" ]]; then val = "?"; fi
|
||||
echo $val > $MAILDIR/gmail_count
|
||||
sleep 30
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue