linux下通過命令行獲取gmail的新郵件
更新時間:2015年05月22日 12:01:05 投稿:hebedich
在這篇文章中,我將為你展示 Linux 命令行的另一個漂亮干練的使用案例:訪問 Google 的 Gmail 服務(wù),有需要的小伙伴可以參考下。
linux下通過命令行獲取gmail的新郵件,不需輸入@gmail.com部分
#!/bin/bash num="\033[1;36m" end="\033[0m" read -p "Enter your mail: " name read -p "Enter pass of mail: " pass atom=`wget -qO - https://$name:$pass@mail.google.com/mail/feed/atom \ --secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificate | grep \ fullcount | sed -e 's/<fullcount>\(.*\)<\/fullcount>/\1/'` echo -e 'You have '$num$atom$end' new letters.'
以上所述就是本文的全部內(nèi)容了,希望大家能夠喜歡。
您可能感興趣的文章:
相關(guān)文章
實戰(zhàn)模擬監(jiān)控MySQL服務(wù)shell腳本小結(jié)
老男孩shell培訓(xùn)課上帶領(lǐng)學(xué)生練習(xí)shell開發(fā)if語句時的幾個小例子和大家分享,需要的朋友可以參考下2016-05-05
Linux shell實現(xiàn)每天定時備份mysql數(shù)據(jù)庫
這篇文章主要介紹了Linux shell實現(xiàn)每天定時備份mysql數(shù)據(jù)庫的代碼,分享給大家,希望大家能夠喜歡。2015-03-03

