Index: /trunk/MagicSoft/Mars/datacenter/scripts/insertsequences
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/insertsequences	(revision 7581)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/insertsequences	(revision 7582)
@@ -43,4 +43,5 @@
 datetime=`date +%F-%H-%M-%S`
 year=`date +%Y`
+lockfile=$lockpath/lock-insertsequences.txt
 
 scriptlogpath=$logpath/run/insertsequences/`date +%Y/%m`
@@ -55,5 +56,7 @@
 
 # finding manual written sequence files (marked by the comment '#manually changed')
-sequencefiles=(`grep -R '#manually changed' $sequpath/ | cut -c 1-42`)
+# there has to be cut from 1-47 (not as for operator from 1-42) because of
+# sequpath=/magic/test/sequences (not /magic/sequences)
+sequencefiles=(`grep -R '#manually changed' $sequpath/ | cut -c 1-47`)
 echo "sequencefiles: "${sequencefiles[@]}  >> $scriptlog 2>&1 
 echo "" >> $scriptlog 2>&1 
