Index: trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 7603)
+++ trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 7604)
@@ -59,4 +59,10 @@
 # find files containing reason 
 files=`find $datapath/callisto/ -name callisto*.log`
+if [ "$files" = "" ]
+then 
+   echo "nothing to do -> exit"  >> $scriptlog 2>&1
+   rm -v $lockfile >> $scriptlog 2>&1
+fi
+
 
 # make links for callisto.rc for which the callisto.log contains reason
@@ -77,5 +83,5 @@
          resetlog=$resetlogpath/reset-callisto-$sequ.log
 
-         check1=`root -q -b $macrospath/resetcolumn.C+\("\"fCallisto\""\,"\"SequenceProcessStatus\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`
+         check1=`root -q -b $macrospath/resetcolumn.C+\("\"\"fCallisto\"\""\,"\"\"SequenceProcessStatus\"\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`
          case $check1 in
             1)   echo "check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1
