Ignore:
Timestamp:
02/03/06 16:42:00 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7460 r7476  
    6767char=28
    6868datetime=`date +%F-%H-%M-%S`
     69lockfile=$lockpath/lock-copyscript.txt
    6970
    7071scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d`
     
    7677
    7778# check if the script is already running
    78 date > $lockpath/lock-copyscript.txt >> $scriptlog 2>&1
     79date > $lockfile >> $scriptlog 2>&1
    7980checklock0=$?
    8081case $checklock0 in
     
    9596then
    9697   echo "couldn't create checkfile -> exit script" >> $scriptlog 2>&1
    97    rm -v $lockpath/lock-copyscript.txt >> $scriptlog 2>&1
     98   rm -v $lockfile >> $scriptlog 2>&1
    9899   date  >> $scriptlog 2>&1
    99100   exit
     
    113114then
    114115   echo "nothing to do -> exit"  >> $scriptlog 2>&1
    115    rm -v $lockpath/lock-copyscript.txt >> $scriptlog 2>&1
     116   rm -v $lockfile >> $scriptlog 2>&1
    116117   date  >> $scriptlog 2>&1
    117118   exit
     
    292293
    293294
    294 rm -v $lockpath/lock-copyscript.txt >> $scriptlog 2>&1
     295rm -v $lockfile >> $scriptlog 2>&1
    295296date >> $scriptlog 2>&1
    296297
Note: See TracChangeset for help on using the changeset viewer.