--- mitgcm.org/scripts/check_outp 2016/07/01 17:00:10 1.47 +++ mitgcm.org/scripts/check_outp 2016/11/28 20:31:34 1.49 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/check_outp,v 1.47 2016/07/01 17:00:10 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/check_outp,v 1.49 2016/11/28 20:31:34 jmc Exp $ # # The purpose of this script is to compare # the latest output with the previous one (from the same platform with @@ -337,9 +337,14 @@ if test -e $OUTPFIL ; then mv -f $OUTPFIL $OUTPFIL'_bak' ; fi echo " t4update: run "`basename $0`" ( $PRC_MAILS newer than $OUTPSUM )" | tee $OUTPFIL fi + elif test -f $OUTPSUM -a $FIRSTDAY = $CURR_DAY ; then + echo ' '$CMDLINE | tee -a $OUTPSUM + echo " t4update: skip "`basename $0`" ( $PRC_MAILS missing )" | tee -a $OUTPSUM + echo " End time: "`date` | tee -a $OUTPSUM + exit 0 else if test -e $OUTPFIL ; then mv -f $OUTPFIL $OUTPFIL'_bak' ; fi - echo " t4update ignored (not current day or $PRC_MAILS or $OUTPSUM missing)" | tee $OUTPFIL + echo " t4update ignored (not current day or $OUTPSUM missing)" | tee $OUTPFIL fi elif test -e $OUTPFIL ; then mv -f $OUTPFIL $OUTPFIL'_bak' @@ -564,8 +569,8 @@ if test "x$ADDRESS" != 'xnone' ; then #- change default sender address ("From:") using "mail -r" option # since, by default, baudelaire uses USER@localhost.localdomain - fullNam=`hostname -A | awk '{print $1}'` - MAILCMD="$MAILCMD -r ${USER}@${fullNam}" + #fullNam=`hostname -A | awk '{print $1}'` + #MAILCMD="$MAILCMD -r ${USER}@${fullNam}" #--- echo ".. send $OUTPSUM to '$ADDRESS' using '$MAILCMD'" $MAILCMD -s 'check_outp summary' $ADDRESS < $OUTPSUM