Index: trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(revision 6970)
+++ trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(revision 6971)
@@ -113,4 +113,16 @@
 do 
    no=`printf %08d $sequence | cut -c 4`
+   
+   sequencepath=/magic/sequences/$no
+   if [ ! -d $sequencepath ]
+   then
+     mkdir -pv $sequencepath >> $scriptlog 2>&1
+     if [ ! -d $sequencepath ]
+     then
+        echo "could not make sequencepath $sequencepath -> continue " >> $scriptlog 2>&1
+        continue
+     fi
+   fi
+
    writesequencefilelogpath=$logpath/writesequencefile/`printf %04d $no`
    echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1
