Index: /issm/trunk/cron/nightlyrun.sh
===================================================================
--- /issm/trunk/cron/nightlyrun.sh	(revision 5590)
+++ /issm/trunk/cron/nightlyrun.sh	(revision 5591)
@@ -267,4 +267,5 @@
 		fclose(fid);
 	end
+	disp('MATLABEXITEDCORRECTLY');
 	exit
 EOF
@@ -288,9 +289,13 @@
 	cat matlab_log.log matlab_log$i.log > matlab_log.log.bak
 	mv matlab_log.log.bak matlab_log.log
-	rm matlab_log$i.log
-
 done
 #}}}
 #Complete info.log {{{1
+if [ $(cat matlab_log.log | grep "MATLABEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ]
+then
+	MATLABCRASH=0
+else
+	MATLABCRASH=1
+fi
 ELAPSED_RUN=$(timer $INSTALL_TIME)
 ELAPSED_TOTAL=$(timer $START_TIME)
@@ -298,4 +303,5 @@
 elapsed_run:   $(echo $ELAPSED_RUN)
 elapsed_total: $(echo $ELAPSED_TOTAL)
+matlab_crash:  $(echo $MATLABCRASH)
 END
 #}}}
Index: /issm/trunk/scripts/dailyrun.sh
===================================================================
--- /issm/trunk/scripts/dailyrun.sh	(revision 5590)
+++ /issm/trunk/scripts/dailyrun.sh	(revision 5591)
@@ -116,4 +116,5 @@
 		fclose(fid);
 	end
+	disp('MATLABEXITEDCORRECTLY');
 	exit
 EOF
@@ -137,9 +138,13 @@
 	cat matlab_log.log matlab_log$i.log > matlab_log.log.bak
 	mv matlab_log.log.bak matlab_log.log
-	rm matlab_log$i.log
-
 done
 #}}}
 #Complete info.log {{{1
+if [ $(cat matlab_log.log | grep "MATLABEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ]
+then
+	MATLABCRASH=0
+else
+	MATLABCRASH=1
+fi
 ELAPSED_RUN=$(timer $INSTALL_TIME)
 ELAPSED_TOTAL=$(timer $START_TIME)
@@ -147,4 +152,5 @@
 elapsed_run:   $(echo $ELAPSED_RUN)
 elapsed_total: $(echo $ELAPSED_TOTAL)
+matlab_crash:  $(echo $MATLABCRASH)
 END
 #}}}
Index: /issm/trunk/scripts/report.sh
===================================================================
--- /issm/trunk/scripts/report.sh	(revision 5590)
+++ /issm/trunk/scripts/report.sh	(revision 5591)
@@ -15,4 +15,5 @@
 EL_RUN=`    cat info.log | grep "elapsed_run"     | awk '{print $2}'`
 EL_TOTAL=`  cat info.log | grep "elapsed_total"   | awk '{print $2}'`
+CRASH=`     cat info.log | grep "matlab_crash:"   | awk '{print $2}'`
 
 #Process matlab_log.log
@@ -52,10 +53,4 @@
 else
 	IS_INSTALL=1
-fi
-if [ $(wc -l matlab.log | awk '{printf("%s",$1);}')  -eq 0 ] 
-then
-	IS_RUN=0
-else
-	IS_RUN=1
 fi
 
@@ -100,22 +95,19 @@
 
 #update status
-if [ $IS_RUN -eq 1 ]
+if [ $IS_INSTALL -eq 1 ]
 then
-	cat summary.html | sed -e "s/STATUS/<span style=\"color:#008000\">all test desks have been run<\/span>/g" > summary2.html
-	mv summary2.html summary.html
+	if [ $CRASH -eq 0 ]
+	then
+		cat summary.html | sed -e "s/STATUS/<span style=\"color:#008000\">all test desks have been run<\/span>/g" > summary2.html
+	else
+		cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation successful but Matlab crashed<\/span>/g" > summary2.html
+	fi
 else
-	if [ $IS_INSTALL -eq 1 ]
-	then
-		cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation successful but tests runs failed<\/span>/g" > summary2.html
-		mv summary2.html summary.html
-	else
-		cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation failed<\/span>/g" > summary2.html
-		mv summary2.html summary.html
-	fi
+	cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation failed<\/span>/g" > summary2.html
 fi
-
+mv summary2.html summary.html
 
 #report table
-if [ $IS_RUN -eq 1 ];
+if [ $IS_INSTALL -eq 1 ];
 then
 	cat << END > content.html
