Changeset 1611
- Timestamp:
- 08/07/09 12:31:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r1604 r1611 6 6 function timer() 7 7 { 8 #if no input: return time, else return elapsed time9 8 if [[ $# -eq 0 ]]; then 10 9 echo $(date '+%s') … … 22 21 fi 23 22 } 24 function today _date()23 function todaydate() 25 24 { 26 #return today date25 export today=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`; 27 26 suffix=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'` 28 echo $suffix; 27 echo $suffix; 29 28 } 29 30 30 function host_name() 31 31 { … … 39 39 echo $HOST_NAME; 40 40 } 41 41 42 42 43 #get configs … … 57 58 export ISSM_RELEASE="issm" 58 59 export OS 60 59 61 60 62 #create ISSM variables … … 118 120 then 119 121 cd $ISSM_DIR/src/c 120 ./intel-compile.sh 122 ./intel-compile.sh >> ../../c-compilation.log 2>&1 121 123 cd $ISSM_DIR/src/mex 122 make install 124 make install >> ../../mex-compilation.log 2>&1 123 125 cd $ISSM_DIR 124 126 else 125 make -j $NUMCPUS 126 make -j $NUMCPUS install 127 make -j $NUMCPUS >> ../../cmex-compilation.log 2>&1 128 make -j $NUMCPUS install >> ../../cmex-compilation.log 2>&1 127 129 fi 128 130 … … 130 132 export ELAPSED_INSTAL=$(timer $START_TIME) 131 133 134 #windows environments: ISSM_DIR_WIN variable not correctly picked up when using 135 #the cron job. just get startup to take the ISSM_DIR variable as the pwd: 136 if [[ "$OS" == "winxp32" ]] 137 then 138 cat startup.m | sed 's/clear status/clear status; ISSM_DIR=pwd;/g' > startup.m.bak 139 mv startup.m.bak startup.m 140 fi 141 142 132 143 #Launch matlab and the nightly run script 133 144 cat > matlab_run.m << EOF 134 145 startup 135 warning off136 146 nightlyrun($PACKAGES); 137 147 exit … … 162 172 From: "ISSM Nightly run" <$EMAIL_ADRESS> 163 173 To: $i 164 Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS.174 Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS. 165 175 Mime-Version: 1.0 166 176 Content-Type: text/html … … 170 180 From: "ISSM Nightly run" <$EMAIL_ADRESS> 171 181 To: $i 172 Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS.182 Subject: Nightly runs of $ISSM_RELEASE , operating system: $OS. 173 183 Mime-Version: 1.0 174 184 Content-Type: text/html
Note:
See TracChangeset
for help on using the changeset viewer.