Index: trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail	(revision 7030)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail	(revision 7048)
@@ -96,6 +96,6 @@
 do 
    echo "checking files for sequence $sequence..." >> $scriptlog 2>&1 
-   no=`printf %08d $sequence | cut -c 4`
-   outpath=$logpath/checkfileavail/`printf %04d $no`
+   no=`printf %08d $sequence | cut -c 0-4`
+   outpath=$logpath/checkfileavail/$no
    echo "outpath: "$outpath  >> $scriptlog 2>&1 
    if [ ! -d $outpath ]
@@ -112,5 +112,5 @@
    case $check1 in
       1)   echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1 
-           setstatuslogpath=$logpath/setstatus/checkfileavail/`printf %04d $no`
+           setstatuslogpath=$logpath/setstatus/checkfileavail/$no
            if [ ! -d $setstatuslogpath ]
            then
