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/mcsequences

    r7460 r7486  
    3535
    3636user=`whoami`
     37program=mcsequences
    3738source /home/$user/Mars/datacenter/scripts/sourcefile
    3839
    3940set -C
    4041
    41 scriptlogpath=$logpath/run/mcsequences/`date +%Y/%m/%d`
     42scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    4243makedir $scriptlogpath
    43 scriptlog=$scriptlogpath/mcsequences`date +%F`.log
     44scriptlog=$scriptlogpath/$program`date +%F`.log
    4445
    4546date >> $scriptlog 2>&1
    4647
    4748# check if script is already running
    48 lockfile=$lockpath/lock-mcsequences.txt
    49 date > $lockfile >> $scriptlog 2>&1
    50 checklock0=$?
    51 case $checklock0 in
    52     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    53     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    54          echo "-> linkmc is running -> exit" >> $scriptlog 2>&1
    55          date  >> $scriptlog 2>&1
    56          exit;;
    57     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    58 esac
     49lockfile=$lockpath/lock-$program.txt
     50checklock  >> $scriptlog 2>&1
    5951
    6052
Note: See TracChangeset for help on using the changeset viewer.