您好,欢迎来到伴沃教育。
搜索
您的当前位置:首页shell脚本sendEmail

shell脚本sendEmail

来源:伴沃教育

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_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_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

Copyright © 2019- bangwoyixia.com 版权所有 湘ICP备2023022004号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务