Changeset 884


Ignore:
Timestamp:
06/10/09 14:36:18 (16 years ago)
Author:
Mathieu Morlighem
Message:

change output string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/report.sh

    r882 r884  
    1212
    1313#Process log for errors
    14 cat nightly.log | grep 'package: macayeal' > macayeal.log
    15 cat nightly.log | grep 'package: ice' > ice.log
    16 cat nightly.log | grep 'package: cielo_serial' > cielo_serial.log
    17 cat nightly.log | grep 'package: cielo_parallel' > cielo_parallel.log
     14cat nightly.log | grep 'package: macayeal'      | grep -v "not supported yet" > macayeal.log
     15cat nightly.log | grep 'package: ice'           | grep -v "not supported yet" > ice.log
     16cat nightly.log | grep 'package: cielo_serial'  | grep -v "not supported yet" > cielo_serial.log
     17cat nightly.log | grep 'package: cielo_parallel'| grep -v "not supported yet" > cielo_parallel.log
    1818cat nightly.log | grep NIGHTLYRUNTERMINATEDCORRECTLY > check.log
    19 cat nightly.log | grep ERROR | grep -v "PETSC ERROR"> errors.log
     19cat nightly.log | grep ERROR | grep -v "PETSC ERROR" > errors.log
    2020cat nightly.log | grep SUCCESS > success.log
    2121cat errors.log success.log > tests.log
    2222mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." mathieu.morlighem@jpl.nasa.gov < tests.log
    2323
     24#build report.html
    2425cat <<END > report.html
    2526<html>
     
    118119
    119120                        #build html corresponding line
    120                         cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$i'o/ {printf("<td '$color'>%s</td><td '$color'> %s%s%s</td><td '$color'> %s</td><td '$color'> %s</td><td '$color'> %s</td>",$2,$3,$4,$5,$8,$10,$14);}';
     121                        cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$i'o/ {printf("<td '$color'>%s</td><td '$color'> %s%s%s</td><td '$color'> %s</td><td '$color'> %s</td><td '$color'> %s</td>",$2,$4,$5,$6,$8,$10,$14);}';
    121122                        echo "</tr>"
    122123                done
     
    131132</div>
    132133END
    133 
    134 echo Script has completed
Note: See TracChangeset for help on using the changeset viewer.