RV=$?
# email output?
if [[ "${SEND_EMAIL}" == "yes" ]] ; then
if [[ "${SEND_EMAIL}" == "yes" && -s "${_tmpout}" ]] ; then
CMD="cat ${_tmpout} ${EMAIL_CMD}"
eval ${CMD}
fi