Mail Led con Gmail - Thinkpad
Scritto da: Divilinux in Bash, Lenovo, Thinkpad, Workaround
#!/bin/bash
rm ~/temp/atom
wget --no-check-certificate -q \
-P~/temp/ https://gmail-username:gmail-password@mail.google.com/mail/feed/atom
email=`perl -ne 'while(/author/g){++$count}; print "$count\n"' ~/temp/atom`
echo $email
if [ -n "$email" ]; then
email=$email
echo "Ci sono nuove emails"
echo on | sudo tee /proc/acpi/ibm/light
else
echo "Non ci sono nuove emails"
email=0
echo off | sudo tee /proc/acpi/ibm/light
fi






Articoli (RSS)