請注意:#為命令列 //為注解
Subject :於command line 寄信給別人:基本指令 mail
選項 : -s :設定mail Subject
# mail -s "test" TEST@gmail.com // -s " 這是為mail subject " 後面加收信人地址
#this is a test mail //文章內文
#finished
. #要按. 結束內文的輸入
#Cc: //cc 給別人 若為直接按Enter 即可

將某檔案的內容直接寄出
假設有一文字檔 1.txt 以下指令可以直按寄出內文
# cat 1.txt ||mail -s "mail test" test@gmail.com
arrow
arrow
    全站熱搜

    yuanann 發表在 痞客邦 留言(1) 人氣()