Thursday, January 27, 2011

access your gmail from terminal

create shell script vi gmail.sh


insert the following code :) put your username and password
!#/bin/bash
wget --secure-protocol=TLSv1 --user=sjn4me --password=123 https://mail.google.com/mail/feed/atom -O -

execute ./gmail.sh

2 comments:

  1. hi, can you explain further? Is this related to Linux only? Can I do this on Windows.
    Thanks

    ReplyDelete
  2. you could try pasting
    https://mail.google.com/mail/feed/atom
    in a web browser it will popup requesting ur username and password.

    you could try installing a wget for windows

    refer the following url...
    http://code.google.com/apis/gmail/docs/inbox_feed.html#inbox

    wget is great tool for ripping sites, etc..
    things that are soo easy in linux are more difficult in windows. many would say otherwise :))

    if you're using windows 7 ultimate you could use the powershell to do it
    http://jacobian.web.id/2008/07/21/how-to-use-wget-in-powershell/

    you could also try http://goosh.org --google shell

    anyways i will see a way around to get the gmail mails from windows command prompt, batch may be.. w/o installing any additional softwares :)
    whats the purpose you want to do this.. or just for fun!! i appreciate ur question..

    ReplyDelete

About

Blogger templates