Index: trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7051)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7052)
@@ -104,9 +104,10 @@
 for sequence in ${sequences[@]}
 do 
-   no=`printf %08d $sequence | cut -c 4`
-   path="/magic/data/callisto/"`printf %04d $no`"/"`printf %08d $sequence`
-   signalfile=$path/signal`printf %08d $sequence`.root
-   calibfile=$path/calib`printf %08d $sequence`.root
-   fillcallistologpath=$logpath/fillcallisto/`printf %04d $no`
+   no=`printf %08d $sequence | cut -c 0-4`
+   no2=`printf %08d $sequence`
+   path="/magic/data/callisto/$no/$no2"
+   signalfile=$path/signal$no2.root
+   calibfile=$path/calib$no2.root
+   fillcallistologpath=$logpath/fillcallisto/$no
    echo "fillcallistologpath: "$fillcallistologpath >> $scriptlog 2>&1
    if [ ! -d $fillcallistologpath ]
@@ -136,5 +137,5 @@
       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
            echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1
-           setstatuslogpath=$logpath/setstatus/fillcallisto/`printf %04d $no`
+           setstatuslogpath=$logpath/setstatus/fillcallisto/$no
            if [ ! -d $setstatuslogpath ]
            then
Index: trunk/MagicSoft/Mars/datacenter/scripts/fillstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7051)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7052)
@@ -105,7 +105,8 @@
 do 
    no=`printf %08d $sequence | cut -c 4`
-   path="/magic/data/star/"`printf %04d $no`"/"`printf %08d $sequence`
-   starfile=$path/star`printf %08d $sequence`.root
-   fillstarlogpath=$logpath/fillstar/`printf %04d $no`
+   no2=`printf %08d $sequence`
+   path="/magic/data/star/$no/$no2"
+   starfile=$path/star$no2.root
+   fillstarlogpath=$logpath/fillstar/$no
    echo "fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&1
    if [ ! -d $fillstarlogpath ]
@@ -125,5 +126,5 @@
       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
            echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1
-           setstatuslogpath=$logpath/setstatus/fillstar/`printf %04d $no`
+           setstatuslogpath=$logpath/setstatus/fillstar/$no
            if [ ! -d $setstatuslogpath ]
            then
Index: trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(revision 7051)
+++ trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(revision 7052)
@@ -104,7 +104,7 @@
 for sequence in ${sequences[@]}
 do 
-   no=`printf %08d $sequence | cut -c 4`
-   
-   sequencepath=/magic/sequences/`printf %04d $no`
+   no=`printf %08d $sequence | cut -c 0-4`
+   no2=`printf %08d $sequence`
+   sequencepath=/magic/sequences/$no
    if [ ! -d $sequencepath ]
    then
@@ -117,5 +117,5 @@
    fi
 
-   writesequencefilelogpath=$logpath/writesequencefile/`printf %04d $no`
+   writesequencefilelogpath=$logpath/writesequencefile/$no
    echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1
    if [ ! -d $writesequencefilelogpath ]
@@ -130,9 +130,9 @@
 
    echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1
-   check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$sequence.log | grep int | sed -e 's/(int)//'`
+   check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$no2.log | grep int | sed -e 's/(int)//'`
    case $check2 in
       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
            echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1
-           setstatuslogpath=$logpath/setstatus/writesequencefile/`printf %04d $no`
+           setstatuslogpath=$logpath/setstatus/writesequencefile/$no
            if [ ! -d $setstatuslogpath ]
            then
@@ -144,6 +144,6 @@
              fi
            fi
-           setstatuslog=$setstatuslogpath/setstatus-writesequencefile
-           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
+           setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$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;;
