224 |
OUTPFIL=`basename $0`'.log' |
OUTPFIL=`basename $0`'.log' |
225 |
NBLDIFF=5 |
NBLDIFF=5 |
226 |
ADDRESS='none' |
ADDRESS='none' |
227 |
|
MAILCMD="mail" |
228 |
dBug=f |
dBug=f |
229 |
t4update=0 |
t4update=0 |
230 |
sTime=`date` |
sTime=`date` |
387 |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > $TMP.dir_all |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > $TMP.dir_all |
388 |
|
|
389 |
if test "x$MACHINES" = "x_All_" ; then |
if test "x$MACHINES" = "x_All_" ; then |
390 |
MACHINES="aces- acesgrid baudelaire dickens danton pleiades" |
MACHINES="aces- acesgrid baudelaire danton iblade sx8 uv100 pleiades" |
391 |
MACHINES="$MACHINES iblade sx8 uv100 stomp octopus svante saramago" |
MACHINES="$MACHINES stomp octopus engaging saramago svante glacier" |
392 |
|
|
393 |
MALL=`cat $TMP.dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq` |
MALL=`cat $TMP.dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq` |
394 |
for madd in $MALL ; do |
for madd in $MALL ; do |
458 |
echo " discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL |
echo " discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL |
459 |
cmis=`expr $cmis + 1` |
cmis=`expr $cmis + 1` |
460 |
elif test $num = '0' ; then |
elif test $num = '0' ; then |
461 |
echo "no previous test for:" $key | tee -a $OUTPFIL |
echo " dir='$sdir', type='$type', of='$optf':" | tee -a $OUTPFIL |
462 |
|
echo " --> no previous test matching key='$key'" | tee -a $OUTPFIL |
463 |
cmis=`expr $cmis + 1` |
cmis=`expr $cmis + 1` |
464 |
else |
else |
465 |
pline=`grep "^$key " $TMP.plist | head -1` |
pline=`grep "^$key " $TMP.plist | head -1` |
562 |
rm -f $TMP.dir_all $TMP.slist $TMP.plist |
rm -f $TMP.dir_all $TMP.slist $TMP.plist |
563 |
if test $OUTPFIL = "TTT.$$" ; then rm -f $OUTPFIL ; fi |
if test $OUTPFIL = "TTT.$$" ; then rm -f $OUTPFIL ; fi |
564 |
if test "x$ADDRESS" != 'xnone' ; then |
if test "x$ADDRESS" != 'xnone' ; then |
565 |
echo ".. send $OUTPSUM to $ADDRESS" |
#- change default sender address ("From:") using "mail -r" option |
566 |
mail -s $OUTPSUM $ADDRESS < $OUTPSUM |
# since, by default, baudelaire uses USER@localhost.localdomain |
567 |
|
fullNam=`hostname -A | awk '{print $1}'` |
568 |
|
MAILCMD="$MAILCMD -r ${USER}@${fullNam}" |
569 |
|
#--- |
570 |
|
echo ".. send $OUTPSUM to '$ADDRESS' using '$MAILCMD'" |
571 |
|
$MAILCMD -s 'check_outp summary' $ADDRESS < $OUTPSUM |
572 |
fi |
fi |
573 |
echo ".. cat $OUTPSUM" |
echo ".. cat $OUTPSUM" |
574 |
cat $OUTPSUM |
cat $OUTPSUM |