Hello All,
I been trying to get a solution for a while not able to figure out. I am generating a file and sending that as an body of message to my outlook account. For some reason reason everything is showing up as one line in the email.
for i in `cat "${GEN_PARAM_LIST3}"`
do
UNINUM=`echo $i | awk -F"|" '{print $1}'`
PROVIDER=`echo $i | awk -F"|" '{print $2}'`
EXTRACT_DT=`echo $i | awk -F"|" '{print $3}'`
PROCESS_STATUS=`echo $i | awk -F"|" '{print $4}'`
echo "Provider:"$PROVIDER", Uninum:"$UNINUM", Extract Date:"$EXTRACT_DT", Loading Status:"$PROCESS_STATUS"" \
>> "${LOG_DIR}"/StageLoadEmailBody
echo -e "\r">> "${LOG_DIR}"/StageLoadEmailBody
done
(cat "${LOG_DIR}/StageLoadEmailBody") | /bin/mailx -s "Provider File Loaded Successfully" "${EMAIL_LIST}"
Expected output:
Informatica Was Able To Successfully Load the Provider File
Provider:16, Uninum:710119, Extract Date:2012-09-30, Loading Status:COMPLETED
Provider:16, Uninum:610000, Extract Date:2012-09-30, Loading Status:COMPLETED
Provider:16, Uninum:710056, Extract Date:2012-09-30, Loading Status:COMPLETED
---------- Post updated at 02:26 PM ---------- Previous update was at 02:00 PM ----------