摘要: 1、将文件内容作为邮件正文发送mailx -s 'Title' xxx@xxx.com < copy.log或者cat /dbtmp/copy.log |mailx -s 'Title' xxx@xxx.com把copy.log内容作为邮件正文发送2、截取文件的部分内容作为正文发送tail -100 /home/oraprod/backuparch.log |mailx -s 'title' xxx@xxx.com截取backuparch.log的后100行作为正文发送2、在邮件标题中加入时间mailx -s "`date &qu 阅读全文
posted @ 2011-11-30 10:24 hello_olduncle 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 使用mailx 发送邮件mailx -s "Msg title here" xxx@xxx.comhello,this is the mail body<--------邮件正文. <-----------------一个点,表示正文结束EOT<--------------上面输入点之后,系统自动出现EOT,表示邮件输入完毕-s表示输入邮件的标题回车后输入邮件的正文,再次回车后如果输入'.'(点),则表示正文输入完毕使用mailq查看是否队列中有邮件等待发送使用mtail 10查看/var/adm/syslog/mail.log的最后10行 阅读全文
posted @ 2011-11-30 08:20 hello_olduncle 阅读(560) 评论(0) 推荐(0) 编辑