Want to check your gmail inbox for unread messages through the terminal?
Gmail in Terminal – Check Inbox – Ubuntu
Let’s Get Started
First, you will need to have CURL installed:
Open up a terminal and type:
[bash]sudo apt-get install curl[/bash]
When CURL installation is complete, create a new bash script:
[bash]#!/bin/bash
curl -u username –silent "https://mail.google.com/mail/feed/atom" |
perl -ne ‘print "\t" if //;
print "$2\n" if /<(title|name)>(.*)<\/\1>/;'[/bash]
Save the file as something like: gmail.sh
Remember to change “username” to your email username.
Follow the remainder of the video.