2. mail.rc 新增以下内容# set from=your-email@example.com set smtp-auth-user=your-email@example.com set smtp=smtp.example.com set smtp-auth-password=your-password set stmp-auth=login 3.说明:# from: 对方收到邮件时显示的发件人 smtp: 指定第三方发送邮件的 smtp 服务器地址 smtp-auth-user: ...
if [ $Ping -eq "0" ] then echo "$Server is ok" >> /log/Ping/$Date.log elif [ $Ping2 -eq "100" ] then echo "$Server is down" >> /log/Ping/$Date.log fi done /usr/bin/mail -s "Android Server Status" zhi.yang@spreadtrum.com < /log/Ping/$Date.log 按Esc键退出编辑模式 ...
2. mail.rc 新增以下内容# set from=your-email@example.com set smtp-auth-user=your-email@example.com set smtp=smtp.example.com set smtp-auth-password=your-password set stmp-auth=login 3.说明:# from: 对方收到邮件时显示的发件人 smtp: 指定第三方发送邮件的 smtp 服务器地址 smtp-auth-user: ...
echo "[info]开始监控tomcat...[$(date +'%F %H:%M:%S')]" if [[ $TomcatID ]];then #这里判断Tomcat进程是否存在 echo "[info]当前tomcat进程ID为:$TomcatID,继续检测页面..." # 检测是否启动成功(成功的话页面会返回状态"200") TomcatServiceCode=$(curl -I -m 10 -o /dev/null -s -w %{...