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

    r7482 r7486  
    5252
    5353todofile=$listpath/ToDo-$table-$column
     54lockfile=$lockpath/lock-getting-$program-list.txt
    5455
    5556scriptlogpath=$logpath/run/$program/`date +%Y/%m`
     
    6667   echo " -> choose one file and start $program " >> $scriptlog 2>&1
    6768else
    68    date > $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
    69    checklock0=$?
    70    case $checklock0 in
    71        0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    72        1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    73             echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    74             date  >> $scriptlog 2>&1
    75             exit;;
    76        *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    77    esac
    78 
     69   # check if getting of list is already running
     70   checklock "getting list of" >> $scriptlog 2>&1
    7971   # get todo list
    8072   getdolist  >> $scriptlog 2>&1
    81 
    82    rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
     73   rm -v $lockfile >> $scriptlog 2>&1
    8374fi
    8475
Note: See TracChangeset for help on using the changeset viewer.