Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7030)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7051)
@@ -172,6 +172,7 @@
 for sequence in ${sequences[@]}
 do 
-  no=`printf %08d $sequence | cut -c 4`
-  outpath="/magic/data/callisto/"`printf %04d $no`"/"`printf %08d $sequence`
+  no=`printf %08d $sequence | cut -c 0-4`
+  no2=`printf %08d $sequence`
+  outpath="/magic/data/callisto/$no/$no2"
   echo "outpath: "$outpath >> $scriptlog 2>&1
   if [ ! -d $outpath ]
@@ -184,5 +185,5 @@
     fi
   fi
-  sequfile="/magic/sequences/"`printf %04d $no`"/sequence"`printf %08d $sequence`".txt"
+  sequfile="/magic/sequences/$no/sequence$no2.txt"
   echo "sequfile: "$sequfile >> $scriptlog 2>&1
   
@@ -198,5 +199,5 @@
 
   echo "run callisto..." >> $scriptlog 2>&1
-  ./callisto -b -q -f -raw --log=$outpath/callisto$sequence.log --out=$outpath --config=$callistorcseq $sequfile  2>> $scriptlog > /dev/null
+  ./callisto -b -q -f -raw --log=$outpath/callisto$no2.log --out=$outpath --config=$callistorcseq $sequfile  2>> $scriptlog > /dev/null
   check1=$?
 
@@ -275,5 +276,5 @@
           
           echo "inserting the status for callisto for sequence $sequence into the db" >> $scriptlog 2>&1
-          setstatuslogpath=$logpath/setstatus/callisto/`printf %04d $no`
+          setstatuslogpath=$logpath/setstatus/callisto/$no
           if [ ! -d $setstatuslogpath ]
           then
@@ -285,6 +286,6 @@
             fi
           fi
-          setstatuslog=$setstatuslogpath/setstatus-callisto
-          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
+          setstatuslog=$setstatuslogpath/setstatus-callisto-$no2.log
+          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
           case $check4 in
   	     1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
