#! /bin/sh File_Sequence_Number="0000015" IPND_emailaddresslist="rod@transmit.com.au" ipnd_records=`wc -l I_P_N_D.save/IPNDUPVICTR.${File_Sequence_Number} | cut -d " " -f 1` echo "ipnd_records=[$ipnd_records]" ipnd_transactions=`expr $ipnd_records - 2` echo "ipnd_transactions=[$ipnd_transactions]" # send email with new upload file available if [ -n "$IPND_emailaddresslist" ]; then for emailaddress in $IPND_emailaddresslist do echo "$0: Sending IPND export email to emailaddress=[$emailaddress]" #---------------------------------------------------------- if [ -s ipnd1.err ]; then cp ipnd1.err ipnd1_export_errors.txt unstripcr ipnd1_export_errors.txt attfiles="ipnd1_export_errors.txt" ERRXTRATXT=" *** There are Export processing ERRORS(s) attached ***" else attfiles="" ERRXTRATXT="" fi subject="IPND Export" emcontent=`cat <