Changeset 1855
- Timestamp:
- 08/25/09 07:47:06 (15 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r1775 r1855 138 138 fi 139 139 140 141 140 #Launch matlab and the nightly run script 142 141 mktemp matlaberror.log … … 149 148 %An error occured, get report and exit 150 149 message=getReport(me) 151 fid=fopen( 'matlaberror.log', 'wt');150 fid=fopen([ISSM_DIR '/matlaberror.log'], 'wt'); 152 151 fprintf(fid,'Matlab error occured in: %s\n',pwd); 153 152 fprintf(fid,'%s',message); … … 157 156 EOF 158 157 159 matlab - wait -nojvm -nosplash -r matlab_run -logfile nightlylong.log158 matlab -nojvm -nosplash -r matlab_run -logfile nightlylong.log 160 159 161 160 #removed unused lines to deal with a smaller file -
issm/trunk/cron/report.sh
r1640 r1855 50 50 FOOTER_STYLE='width="800px" cellpadding="10"' 51 51 FOOTER_FONT='style="color:#404040; font-family:Arial, Verdana, Tahoma; font-size:12px; font-weight: normal;" align="center"' 52 53 MATLAB_STYLE='width="820px"' 54 MATLAB_FONT='style="color:#404040; font-family:Arial, Verdana, Tahoma; font-size:14px; font-weight: normal;" align="left"' 52 55 53 56 #build report.html … … 120 123 END 121 124 125 #Matlab error report 126 cat << END > matlaberror.html 127 <table $H2_STYLE><tr><td $H2_FONT>Matlab error</td></tr></table> 128 <table $MATLAB_STYLE><tr><td $MATLAB_FONT> 129 <pre>$(more matlaberror.log)</pre> 130 </td></tr></table> 131 END 122 132 123 133 #report content … … 190 200 END 191 201 else 202 mktemp content.html 192 203 for package in "macayeal" "ice" "cielo_serial" "cielo_parallel"; do 193 204 rm $package.log … … 203 214 204 215 #concatenate files 205 if [ $IS_INSTALL -eq 1 ]; 206 then 207 if [ $IS_RUN -eq 1 ]; 208 then 209 cat summary.html content.html footer.html > report.html 210 rm summary.html content.html footer.html 211 else 212 cat summary.html footer.html > report.html 213 rm summary.html footer.html 214 fi 215 else 216 cat summary.html footer.html > report.html 217 rm summary.html footer.html 218 fi 216 if [ $IS_RUN -eq 0 ] || [ $IS_END -eq 0 ]; 217 then 218 cat summary.html matlaberror.html content.html footer.html > report.html 219 else 220 cat summary.html content.html footer.html > report.html 221 fi 222 rm summary.html content.html footer.html matlaberror.html
Note:
See TracChangeset
for help on using the changeset viewer.