Ignore:
Timestamp:
02/08/06 18:03:41 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences

    r7477 r7486  
    3333
    3434user=`whoami`
     35program=processmcsequences
    3536source /home/$user/Mars/datacenter/scripts/sourcefile
    3637
    3738set -C
    3839
    39 scriptlogpath=$logpath/run/processmcsequences/`date +%Y/%m/%d`
     40scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    4041makedir $scriptlogpath
    41 scriptlog=$scriptlogpath/processmcsequences`date +%F-%H-%M-%S`.log
     42scriptlog=$scriptlogpath/$program`date +%F-%H-%M-%S`.log
    4243
    4344date >> $scriptlog 2>&1
    4445
    4546# check if script is already running
    46 lockfile=$lockpath/lock-processmcsequences.txt
    47 date > $lockfile >> $scriptlog 2>&1
    48 checklock0=$?
    49 case $checklock0 in
    50     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    51     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    52          echo "-> processmcsequences is running -> exit" >> $scriptlog 2>&1
    53          date  >> $scriptlog 2>&1
    54          exit;;
    55     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    56 esac
     47lockfile=$lockpath/lock-$program.txt
     48checklock  >> $scriptlog 2>&1
    5749
    5850mcpath=/montecarlo/rawfiles
Note: See TracChangeset for help on using the changeset viewer.