Index: trunk/MagicSoft/Mars/datacenter/scripts/checklogs
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checklogs	(revision 8057)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checklogs	(revision 8058)
@@ -25,14 +25,6 @@
 # ========================================================================
 #
-# This script is removing lock files which are older than 12 hours. 
-# 
-# Each process in the automatic analysis is writing a lock file. As these 
-# processes are launched with condor, they are stopped after 12 hours, if 
-# they are still running. In this case the lock files are not removed. 
-# 
-# By comparing the date of the lock file and the current date, the 
-# running time of a process is determined and if it is bigger than 12 
-# hours (which means that the process has been already kill by condor) the 
-# lock file is removed
+# This script checks, if there are WARNs or ERRORs in the processlog of 
+# the last night and sends them to the emailadresse(s) in $erradr
 #
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns	(revision 8058)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns	(revision 8058)
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+
+query="select concat('/magic/data/rawfiles', Date_Format(adddate(fRunStart, interval 12 HOUR), '/%Y/%m/%d/'),'*', fRunNumber, '*.raw.gz')  from RunData where fSequenceFirst='0' and fRunStart > '2004-08-20'"
+
+files=`mysql -u MAGIC --host=hercules --password=d99swMT! MyMagic -s -e " $query"`
+
+sum=0
+
+for file in $files
+do 
+   name=`basename $file`
+   dir=`dirname $file`
+   num=`find $dir -name $name -printf '%k '`
+   if [ "$num" = "" ]
+   then
+      echo "num is empty for $file"
+      continue
+   fi
+   sum=`expr $sum + $num`
+done
+echo $sum
+
