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

Legend:

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

    r7469 r7477  
    4545table=SequenceProcessStatus
    4646column=fStar
    47 date=NULL
    48 datetime=`date +%F-%H-%M-%S`
    49 year=`date +%Y`
    5047#pno=500 # number of processes, i.e. number of todo-files
    5148
    5249todofile=$listpath/ToDo-$table-$column
    53 getstatuslogpath=$logpath/getstatus/$program/$year
    54 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log
     50lockfile=$lockpath/lock-getting-$program-list.txt
    5551
    5652scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
     
    6056date >> $scriptlog 2>&1
    6157
    62 makedir $getstatuslogpath >> $scriptlog 2>&1
    63 
    6458cd $mars
    6559
    6660# check if getting of list is already running
    67 date > $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
     61date > $lockfile >> $scriptlog 2>&1
    6862checklock0=$?
    6963case $checklock0 in
     
    8377   echo " -> choose one file and start calculation of image parameter" >> $scriptlog 2>&1
    8478else
    85    echo "getting list..." >> $scriptlog 2>&1
    86    check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'`
    87    
    88    case $check0 in
    89        1)   echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;;
    90        *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    91    esac
     79   # get todo list
     80   getdolist  >> $scriptlog 2>&1
     81   rm -v $lockfile >> $scriptlog 2>&1
    9282fi
    93 
    94 rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
    9583
    9684# choosing todo file
     
    130118then
    131119   echo "nothing to do -> exit"  >> $scriptlog 2>&1
    132    rm -v $todofile >> $scriptlog 2>&1
    133    rm -v $lockfile >> $scriptlog 2>&1
    134    date  >> $scriptlog 2>&1
    135    exit
     120   finish >> $scriptlog 2>&1
    136121fi
    137122
     
    170155done
    171156
    172 rm -v $todofile >> $scriptlog 2>&1
    173 rm -v $lockfile >> $scriptlog 2>&1
     157finish >> $scriptlog 2>&1
    174158
    175 set +C
    176 
    177 date  >> $scriptlog 2>&1
    178 
Note: See TracChangeset for help on using the changeset viewer.