$cmd | grep State | grep -v Okay | grep -v Spare
if [ $? = 1 ] ; then
sleep 1
else
echo "Metastats are NOT Okay!" | $mail_client -s "`uname -n` meta-Alert!" $adm_email
fi
exit 0作者: shooterchan 时间: 2006-06-07 10:46
怎样在sendmail中设置stmp认证,即设定发件人用户名和密码?谢谢作者: zhanghome 时间: 2006-06-08 16:55
使用susbin 说的方法在机器上测试,没有报错,但收不到邮件,是否需要什么配置或是否有什么限制呢?
关注。。作者: susbin 时间: 2006-06-08 18:09
You can send out a testing email with /usr/bin/mailx on your machine
see if the email could reach the destination.