Index: trunk/MagicSoft/Mars/datacenter/scripts/insertsequences
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/insertsequences	(revision 7460)
+++ trunk/MagicSoft/Mars/datacenter/scripts/insertsequences	(revision 7486)
@@ -34,4 +34,5 @@
 
 user=`whoami`
+program=insertsequences
 source /home/$user/Mars/datacenter/scripts/sourcefile
 
@@ -51,14 +52,5 @@
 
 # check if script is already running
-date > $lockpath/lock-insertsequences.txt >> $scriptlog 2>&1 
-checklock0=$?
-case $checklock0 in 
-    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
-    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
-         echo "-> insertsequences is running -> exit" >> $scriptlog 2>&1
-         date  >> $scriptlog 2>&1
-         exit;;
-    *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
-esac
+checklock  >> $scriptlog 2>&1
 
 # finding manual written sequence files (marked by the comment '#manually changed')
