Changeset 1562
- Timestamp:
- 08/05/09 08:36:58 (16 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/configs/linux64_morlighem
r1535 r1562 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 3 4 #email adress to send Cron report5 EMAIL_ADRESS= "mathieu.morlighem@jpl.nasa.gov"4 #email adress from which the html report will be sent 5 EMAIL_ADRESS=mathieu.morlighem@jpl.nasa.gov 6 6 7 7 -
issm/trunk/cron/configs/macosx32_morlighem
r1559 r1562 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 3 4 #email adress to send Cron report5 EMAIL_ADRESS= "helene.seroussi@jpl.nasa.gov"4 #email adress from which the html report will be sent 5 EMAIL_ADRESS=helene.seroussi@jpl.nasa.gov 6 6 7 7 #ISSM directory -
issm/trunk/cron/configs/macosx32_seroussi
r1559 r1562 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 3 4 #email adress to send Cron report5 EMAIL_ADRESS= "helene.seroussi@jpl.nasa.gov"4 #email adress from which the html report will be sent 5 EMAIL_ADRESS=helene.seroussi@jpl.nasa.gov 6 6 7 7 #ISSM directory -
issm/trunk/cron/configs/win32xp_larour
r1552 r1562 2 2 REPOSITORY="http://s383-rhat/issm/svn/issm/trunk" 3 3 4 #email adress to send Cron report5 EMAIL_ADRESS= "eric.larour@jpl.nasa.gov"4 #email adress from which the html report will be sent 5 EMAIL_ADRESS=eric.larour@jpl.nasa.gov 6 6 7 7 #ISSM directory -
issm/trunk/cron/nightlyrun.sh
r1557 r1562 6 6 if [ $# -ne 1 ]; 7 7 then 8 #no config file specified: exit 8 9 echo "no config file specified. Exiting..." 9 10 exit 1 10 11 else 12 #launch nightly run (get start time) 11 13 source $1; 14 START=$(timer) 12 15 fi 13 16 17 #some functions 18 function timer() 19 { 20 if [[ $# -eq 0 ]]; then 21 echo $(date '+%s') 22 else 23 local stime=$1 24 etime=$(date '+%s') 25 26 if [[ -z "$stime" ]]; then stime=$etime; fi 27 28 dt=$((etime - stime)) 29 ds=$((dt % 60)) 30 dm=$(((dt / 60) % 60)) 31 dh=$((dt / 3600)) 32 printf '%d:%02d:%02d' $dh $dm $ds 33 fi 34 } 35 function todaydate() 36 { 37 export today=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`; 38 suffix=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'` 39 echo $suffix; 40 } 41 14 42 #create nightly run variables 15 export TODAY= `date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`;43 export TODAY=$(todaydate); 16 44 export HOST_NAME=`hostname`; 17 if [[ "$OS" == "winxp32" ]]18 then19 export HOST_NAME_SHORT=`hostname`;20 else21 export HOST_NAME_SHORT=`hostname -s`;22 fi23 45 export ISSM_RELEASE="issm" 24 46 … … 43 65 cat << END > cluster.rc 44 66 begin 45 cluster_name=$HOST_NAME _SHORT67 cluster_name=$HOST_NAME 46 68 cluster_codepath=$ISSM_DIR/bin 47 69 cluster_executionpath=$EXECUTION_PATH … … 83 105 84 106 #Build html report 107 export ELAPSEDTIME=$(timer $START) 85 108 ./cron/report.sh 86 109 … … 91 114 if [[ "$OS" == "winxp32" ]] 92 115 then 93 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE on: $HOST_NAME. Date:$TODAY. " $i < report.html116 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE OS: $OS. " $i < report.html 94 117 else 95 118 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 96 From: "ISSM Nightly run" $EMAIL_ADRESS119 From: "ISSM Nightly run" <$EMAIL_ADRESS> 97 120 To: $i 98 Subject: Nightly runs of $ISSM_RELEASE on: $HOST_NAME_SHORT. Date:$TODAY.121 Subject: Nightly runs of $ISSM_RELEASE OS: $OS. 99 122 Mime-Version: 1.0 100 123 Content-Type: text/html -
issm/trunk/cron/report.sh
r1551 r1562 83 83 platform: $ISSM_ARCH<br> 84 84 release: $ISSM_RELEASE<br> 85 elapsed time: $ELAPSEDTIME<br> 85 86 <br> 86 87 status: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'` = "0" ];
Note:
See TracChangeset
for help on using the changeset viewer.