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)容了,希望大家能夠喜歡。
您可能感興趣的文章:
- 利用shell編程實現(xiàn)DOS風(fēng)格的Linux命令行
- Linux命令行和shell腳本編程寶典 Richard Blum
- PHP調(diào)用Linux的命令行執(zhí)行文件壓縮命令
- CMD里或登陸遠(yuǎn)程linux服務(wù)器時命令行下復(fù)制和粘貼實現(xiàn)方法
- linux命令行下使用curl命令查看自己機(jī)器的外網(wǎng)ip
- 在linux中導(dǎo)入sql文件的方法分享(使用命令行轉(zhuǎn)移mysql數(shù)據(jù)庫)
- linux shell命令行參數(shù)用法詳解
- linux shell命令行選項與參數(shù)用法詳解
相關(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

