Index: trunk/MagicSoft/Mars/datacenter/scripts/runstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7030)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7051)
@@ -167,6 +167,7 @@
 for sequence in ${sequences[@]}
 do 
-  no=`printf %08d $sequence | cut -c 4`
-  outpath="/magic/data/star/"`printf %04d $no`"/"`printf %08d $sequence`
+  no=`printf %08d $sequence | cut -c 0-4`
+  no2=`printf %08d $sequence`
+  outpath="/magic/data/star/$no/$no2"
   inpath=`echo $outpath | sed -e 's/star/callisto/'`
   echo "inpath: "$inpath >> $scriptlog 2>&1
@@ -181,5 +182,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
   
@@ -191,5 +192,5 @@
      0)   echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1
           echo "-> inserting the status for star for sequence $sequence into the db" >> $scriptlog 2>&1
-          setstatuslogpath=$logpath/setstatus/star/`printf %04d $no`
+          setstatuslogpath=$logpath/setstatus/star/$no
           if [ ! -d $setstatuslogpath ]
           then
@@ -201,6 +202,6 @@
             fi
           fi
-          setstatuslog=$setstatuslogpath/setstatus-star
-          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
+          setstatuslog=$setstatuslogpath/setstatus-star-$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;;
