--截取conc的参数
VL_REQID=`echo $1 | cut -d" " -f9 | cut -d"\"" -f2` --request id
VL_FLAG=`echo $1 | cut -d" " -f10 | cut -d"\"" -f2` --log/output
VL_MSG=`echo $1 | cut -d"\"" -f12` --title
VL_MAILLIST=`echo $1 | cut -d"\"" -f14` --mail address
echo "Mail Message: " $VL_MSG
echo "Mail List: "$VL_MAILLIST
echo "Error Log/Output file) is sending out via email, request ID: "$VL_REQID
echo "---------------------------------------------------------------------------"
if test "$VL_FLAG" = "LOG"
then
email_filename="l"$VL_REQID".req"
cp $APPLCSF/log/$email_filename $C_INBND_DIR/log/$email_filename
else
email_filename="o"$VL_REQID".out"
cp $APPLCSF/out/$email_filename $C_INBND_DIR/log/$email_filename
fi
if [ $? -gt 0 ]
then
echo "Log/Output file copy unsuccessfully"
else
sleep 10
uuencode $C_INBND_DIR/log/$email_filename $email_filename | mailx -s "$VL_MSG" $VL_MAILLIST
echo "Log/Output file send out successfully"
fi
exit 0
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10359218/viewspace-694932/ ,如需转载,请注明出处,否则将追究法律责任。