使用unix裡的mail指令 可以把產生出來的檔案 視為 內文寄出去

可是 寫好的一個html檔呢
這時候如果 能附加檔案的話 就更好用了

終於被我認真的找著了
原來那個pack是被包在一個叫 sharutils 的rpm裡

Send a log file as the mail content to the system administrator:
# mail -s "Reorganization completed" root < db_reorg.log

Send the mail with an attached file

#uuencode filename.zip Attachment.zip| mail -s "Subject" abc@domain

 

Cool

ting1000 發表在 痞客邦 留言(0) 人氣()