-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML- #!/bin/bash
- gmail_login="uzezdu"
- gmail_password="87361465"
-
-
- while [ 1 ]; do
-
- fetch="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom --no-check-certificate )"
- line="$(echo "$fetch" | grep 'fullcount')"
- unread="$(echo "$line" | sed "s/<fullcount>\(.*\)<\/fullcount>/\1/")"
-
-
- if [ -z "$unread" ]; then
- echo “!”
- else
- echo “$unread”
- fi
-
- sleep 10
-
- done
|