Conky i Gmail nie chcą się digadać :O
: 02 lis 2010, 18:58
W conkyrc mam taką linię:
W pliku gmail:
Ciągle pokazuje Connection error. Próbowałem już X skryptów i wciąż to samo :<
Kod: Zaznacz cały
$alignc${execi 60 ~/conky/gmail}
Kod: Zaznacz cały
#!/bin/bash
gmail_login="loginbez@gmail.com"
gmail_password="pass"
data="$(wget --quiet --output-document=- --secure-protocol=TLSv1 --no-cookies --tries=1 --timeout=2 \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom --no-check-certificate \
| grep 'fullcount' | sed --expression='s/<fullcount>//;s/<\/fullcount>//')"
if [ -z "${data}" ]; then
echo "Connection Error !"
else
echo "GMail: ${data} msg(s)"
fi