Ignore:
Timestamp:
10/27/10 17:48:15 (14 years ago)
Author:
Daniela Dorner
Message:
lock in db instead of lockfile
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/datacenter/scripts/runceres

    r9919 r10041  
    3737set -C
    3838
    39 # get sequence #
    40 gettodo "1"
    41 run=${primaries[0]}
    42 cereskey=${primaries[1]}
    43 
    44 # lock sequ for cal
    45 lockfile=$lockpath/lock-$step-$run.$cereskey.txt
    46 checklock
     39# get run #
     40numchanged=0
     41while (( 0 < 21 ))
     42do
     43   if ! [ $numchanged -eq 1 ]
     44   then
     45      if ! [ "$run" = "" ] && ! [ "$cereskey" = "" ]
     46      then
     47         printprocesslog "INFO $program for run $run cereskey $cereskey is already running => request new number "
     48      fi
     49      gettodo "1"
     50      run=${primaries[0]}
     51      cereskey=${primaries[1]}
     52      if [ "$run" = "" ] || [ "$cereskey" = "" ]
     53      then
     54         printprocesslog "INFO nothing to do for $program "
     55      fi
     56   else
     57      printprocesslog "INFO starting $program for run $run cereskey $cereskey"
     58      break
     59   fi
     60   setstatus "start"
     61done
    4762
    4863cd $mars
    4964
    50 # run calibration for sequence
    51 printprocesslog "INFO starting $program for run $run and ceres-setup $cereskey"
    52 
    53 setstatus "start"
     65# run ceres for run
    5466
    5567setupfile=$setuppath/$program/`printf %03d $cereskey`/ceres.rc
Note: See TracChangeset for help on using the changeset viewer.