Changeset 299


Ignore:
Timestamp:
05/07/09 09:17:11 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added check that nighltyrun did not stop before the end due to a matlab error

Location:
issm/trunk/cron
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/linux_cronfile

    r173 r299  
    1 01 0 * * * cd /u/wilkes-r1b/morlighe/svn/issm/trunk/cron/ && ./nightlyrun.sh
     102 0 * * * cd /u/wilkes-r1b/morlighe/svn/issm/trunk/cron/ && ./nightlyrun.sh
  • issm/trunk/cron/nightlyrun.sh

    r228 r299  
    7373cat nightly.log | grep ERROR > errors1.log
    7474cat nightly.log | grep SUCCESS > errors2.log
     75cat nightly.log | grep NIGHTLYRUNTERMINATEDCORRECTLY > check.log
    7576cat errors1.log errors2.log > errors.log
    7677               
    7778#Mail
    7879ERRORS=`cat errors.log`
     80CHECK=`cat check.log`
     81
     82#1: no result -> did not work
    7983if [ `expr length "$ERRORS"`  = "0" ]; then
    8084        for i in `echo $MAILINGLIST`
     
    8387                done
    8488else
    85         for i in `echo $MAILINGLIST`
     89
     90#2: nightly run stopped before the end
     91        if [ `expr length "$CHECK"`  = "0" ]; then
     92                for i in `echo $MAILINGLIST`
     93                do 
     94                        mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today. STOPPED BEFORE THE END" $i < errors.log
     95                done
     96
     97#3: everything worked
     98        else
     99                for i in `echo $MAILINGLIST`
    86100                do 
    87101                        mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." $i < errors.log
    88102                done
     103        fi
    89104fi
    90105
    91106#Erase log and error logs
    92 rm -rf nightly.log errors1.log errors2.log errors.log
     107rm -rf nightly.log errors1.log errors2.log errors.log check.log
    93108
    94109#Erase ice code
Note: See TracChangeset for help on using the changeset viewer.