Index: trunk/DataCheck/QuickLook/ReDoStar.sh
===================================================================
--- trunk/DataCheck/QuickLook/ReDoStar.sh	(revision 18392)
+++ trunk/DataCheck/QuickLook/ReDoStar.sh	(revision 18394)
@@ -4,21 +4,22 @@
 printprocesslog "INFO starting $0"
 
-#root=/opt/root_svn/bin/thisroot.sh
-#source $root
+# get date 
+checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
+if [ "$checkstring" = "" ] || [ "$certaindate" = "" ]
+then
+   echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
+   finish
+else
+   date=$certaindate
+fi
 
-anapath=/loc_data/analysis
-auxpath=/loc_data/aux
-
-printprocesslog "INFO get list of calibrated files"
-
-date="2014/05/24"
-#calfiles=( `find $anapath -type f -name '*_C.root' 2>/dev/null | grep -v failed_stuff | sort` )
+printprocesslog "INFO get list of calibrated files for "$date
 calfiles=( `find $anapath/callisto/$date -type f -name '*_C.root' 2>/dev/null | sort` )
 if [ ${#calfiles[@]} -eq 0 ]
 then
-   printprocesslog "INFO no calibrated files available "
+   printprocesslog "INFO no calibrated files available for "$date
    finish
 fi
-#starfiles=( `find $anapath -type f -name '*_I.root' 2>/dev/null | grep -v failed_stuff | sort` )
+printprocesslog "INFO get list of star files"
 starfiles=( `find $anapath/star/$date -type f -name '*_I.root' 2>/dev/null | sort` )
 if [ ${#starfiles[@]} -eq 0 ]
