2014-08-15 13:43:49 +04:00
|
|
|
#!/bin/bash
|
|
|
|
# mymail_gmail_loop.sh
|
|
|
|
|
2014-08-15 20:24:13 +04:00
|
|
|
MAILDIR=/tmp/$USERNAME-mail_loop
|
|
|
|
mkdir --mode=700 $MAILDIR
|
|
|
|
|
2014-08-15 13:43:49 +04:00
|
|
|
while [ 1 ]; do
|
2014-08-15 22:11:53 +04:00
|
|
|
val=$(~/.config/awesome/mail_loop_mymail.py)
|
2014-08-15 20:24:13 +04:00
|
|
|
echo $val > $MAILDIR/mymail_count
|
2014-08-15 13:43:49 +04:00
|
|
|
sleep 30
|
2014-08-15 22:11:53 +04:00
|
|
|
val=$(~/.config/awesome/mail_loop_gmail.py)
|
2014-08-15 20:24:13 +04:00
|
|
|
echo $val > $MAILDIR/gmail_count
|
2014-08-15 13:43:49 +04:00
|
|
|
sleep 30
|
|
|
|
done
|