萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> 編程語言綜合 >> linux下通過命令行獲取gmail的新郵件

linux下通過命令行獲取gmail的新郵件

   在這篇文章中,我將為你展示 Linux 命令行的另一個漂亮干練的使用案例:訪問 Google 的 Gmail 服務,有需要的小伙伴可以參考下。

  linux下通過命令行獲取gmail的新郵件,不需輸入@gmail.com部分

  ?

1 2 3 4 5 6 7 8 9 10 11 12 13 #!/bin/bash   num="33[1;36m" end="33[0m"   read -p "Enter your mail: " name read -p "Enter pass of mail: " pass   atom=`wget -qO - https://$name:[email protected]/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.'

  以上所述就是本文的全部內容了,希望大家能夠喜歡。

copyright © 萬盛學電腦網 all rights reserved