PC-Addicts.com

Systems Administration

Check Gmail in Terminal

May 19, 2010 by chrisadmin

How to check your gmail inbox in a Linux terminal.

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.

Filed Under: Uncategorized

Copyright © 2023 PC-Addicts by Chris Davis · Log in

Copyright © 2023 · Metro Pro Theme on Genesis Framework · WordPress · Log in