269 |
# if Send-Command is empty and mpack exist, then send email using mpack. |
# if Send-Command is empty and mpack exist, then send email using mpack. |
270 |
if test -x $MPACK ; then SENDCMD=$MPACK |
if test -x $MPACK ; then SENDCMD=$MPACK |
271 |
else |
else |
|
echo "Warning: $MPACK is not executable => no email was sent" |
|
272 |
echo |
echo |
273 |
|
echo "Warning: $MPACK is not executable => no email was sent" |
274 |
fi |
fi |
275 |
fi |
fi |
276 |
if test "x$SENDCMD" != x ; then |
if test "x$SENDCMD" != x ; then |
284 |
echo "Warning: The tar, gzip, & mpack step failed. Please send email" |
echo "Warning: The tar, gzip, & mpack step failed. Please send email" |
285 |
echo " to <MITgcm-support@mitgcm.org> for help. You may copy the " |
echo " to <MITgcm-support@mitgcm.org> for help. You may copy the " |
286 |
echo " summary of results from the directory \"$DRESULTS\"." |
echo " summary of results from the directory \"$DRESULTS\"." |
|
echo |
|
287 |
else |
else |
288 |
echo |
echo |
289 |
echo "An email containing results was sent to the following address:" |
echo "An email containing results was sent to the following address:" |
290 |
echo " \"$ADDRESS\"" |
echo " \"$ADDRESS\"" |
|
echo |
|
291 |
fi |
fi |
292 |
test -f ${SAVDIR}/${DRESULTS}".tar" && rm -f ${SAVDIR}/${DRESULTS}".tar" |
test -f ${SAVDIR}/${DRESULTS}".tar" && rm -f ${SAVDIR}/${DRESULTS}".tar" |
293 |
test -f ${SAVDIR}/${DRESULTS}".tar.gz" && rm -f ${SAVDIR}/${DRESULTS}".tar.gz" |
test -f ${SAVDIR}/${DRESULTS}".tar.gz" && rm -f ${SAVDIR}/${DRESULTS}".tar.gz" |
294 |
fi |
fi |
295 |
fi |
fi |
296 |
|
echo '' ; echo '===== Summary (tst_2+2_out.txt): ======' |
297 |
|
cat $SUMMARY |
298 |
|
|
299 |
# save output and remove output Dir (if no address was provided) |
# save output and remove output Dir (if no address was provided) |
300 |
# note: to keep the output Dir without sending email, use option "-a NONE" |
# note: to keep the output Dir without sending email, use option "-a NONE" |