美文网首页
shell脚本sendEmail

shell脚本sendEmail

作者: yellow_hll | 来源:发表于2017-02-24 09:50 被阅读79次

sendEmail的主页http://caspian.dotconf.net/menu/Software/SendEmail/
下载地址http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz

tar –zxvf sendEmail-v1.56.tar.gz

cd sendEmail-v1.56

cp sendEmail /usr/local/bin


!/bin/bash

/usr/bin/lua /home/debug/toolscript/shengyu/decodelog.lua > /dev/null
sleep 10

收件者邮箱

email_reciver="huanglinglin@myhexin.com shengyu@myhexin.com loufu@myhexin.com smm@myhexin.com zhangqianli@myhexin.com wushengrui@myhexin.com denglinkun@myhexin.com"

发送者邮箱

email_sender="huanglinglin@myhexin.com"

邮箱用户名

email_username="huanglinglin@myhexin.com"

邮箱密码

email_password="Hll952289652"

file1_path="/home/debug/toolscript/shengyu/repairdata_date +%Y%m%d.log"

file2_path="/home/debug/toolscript/shengyu/repairdata_date +%Y%m%d.xlsx"

smtp服务器地址

email_smtphost="mail.myhexin.com"

email_title="repairdata模块的每日统计日志"
email_content="大家好,附件是repairdata模块的每日统计日志。"

/usr/local/bin/sendEmail -f ${email_sender} -t ${email_reciver} -s ${email_smtphost} -u ${email_title} -xu ${email_username} -xp ${email_password} -m ${email_content} -a ${file2_path} -o message-charset=BK

相关文章

  • shell脚本sendEmail

    sendEmail的主页http://caspian.dotconf.net/menu/Software/Send...

  • Shell入门笔记

    Shell脚本:Linux Shell脚本学习指南菜鸟教程 - Shell教程Linux入门 - Shell脚本是...

  • 2018-09-26

    shell脚本 1.1、什么是shell脚本(shell script , ...

  • Shell script + crontab实现Mysql定时备

    一、Shell 脚本 Shell 脚本(shell script),是一种为 shell 编写的脚本程序。 业界所...

  • 嵌入式day12

    shell脚本的本质 shell脚本语言是解释型语言 shell脚本的本质:shell命令的有序集合 shell编...

  • shell脚本

    什么是shell脚本 Shell 脚本(shell script),是一种为 shell 编写的脚本程序。业界所说...

  • Shell脚本语法

    1. Shell脚本简介Shell 脚本(shell script),是一种为 shell 编写的脚本程序。业界所...

  • shell脚本

    什么是Shell脚本 Shell脚本(英语:Shell script),又称Shell命令稿、程序化脚本,是一种电...

  • 【生物信息笔记】shell 脚本 (dry-2)

    shell 和 shell script(脚本)区别: shell 和 shell 脚本是两个不同概念,shell...

  • chapter 11. 构建基本脚本

    创建shell脚本 shell脚本第一行为指定具体shell来运行该脚本,可以指定shell(待验证) echo ...

网友评论

      本文标题:shell脚本sendEmail

      本文链接:https://www.haomeiwen.com/subject/ndoiwttx.html