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

    r7471 r7476  
    4444table=RunProcessStatus
    4545column=fTimingCorrection
    46 date=NULL
    47 datetime=`date +%F_%T`
    48 year=`date +%Y`
    4946
    50 getstatuslogpath=$logpath/getstatus/$program/$year
    51 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
    52 makedir $getstatuslogpath >> $scriptlog 2>&1
     47todofile=$listpath/ToDo-$table-$column.txt
     48lockfile=$lockpath/lock-$program.txt
    5349
    54 if [ -e $listpath/ToDo-$table-$column.txt ]
     50if [ -e $todofile ]
    5551then
    5652   echo "$program is already running -> exit"
     
    6056cd $mars
    6157
    62 echo "getting list..."
    63 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'`
    64 
    65 case $check0 in
    66    1)   echo "check0=$check0 -> everything ok -> run $program";;
    67    *)   echo "check0=$check0 -> ERROR -> step has to be repeated";;
    68 esac
     58# get todo list
     59getdolist  >> $scriptlog 2>&1
    6960
    7061# retrieving runs from todo file
     
    7364then
    7465   echo "nothing to do -> exit"
    75    rm -v $listpath/ToDo-$table-$column.txt
    76    exit
     66   finish >> $scriptlog 2>&1
    7767fi
    7868
     
    114104done
    115105
    116 rm -v $listpath/ToDo-$table-$column.txt
     106finish >> $scriptlog 2>&1
    117107
Note: See TracChangeset for help on using the changeset viewer.