Changeset 10041 for trunk/Mars/datacenter/scripts/runcallisto_mc
- Timestamp:
- 10/27/10 17:48:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/runcallisto_mc
r9920 r10041 37 37 38 38 # get sequence # 39 gettodo "1" 40 sequence=${primaries[0]} 41 cereskey=${primaries[1]} 42 43 # lock sequ for cal 44 lockfile=$lockpath/lock-$step-$sequence-$cereskey.txt 45 checklock 39 numchanged=0 40 while (( 0 < 21 )) 41 do 42 if ! [ $numchanged -eq 1 ] 43 then 44 if ! [ "$sequence" = "" ] && ! [ "$cereskey" = "" ] 45 then 46 printprocesslog "INFO $program for sequence $sequence cereskey $cereskey is already running => request new number " 47 fi 48 gettodo "1" 49 sequence=${primaries[0]} 50 cereskey=${primaries[1]} 51 if [ "$sequence" = "" ] || [ "$cereskey" = "" ] 52 then 53 printprocesslog "INFO nothing to do for $program " 54 fi 55 else 56 printprocesslog "INFO starting $program for sequence $sequence cereskey $cereskey" 57 break 58 fi 59 setstatus "start" 60 done 46 61 47 62 cd $mars 48 63 49 64 # run calibration for sequence 50 printprocesslog "INFO starting $program for sequence $sequence cereskey $cereskey"51 65 52 66 # define files and paths … … 57 71 callistorc=$setuppath/$program/`printf %03d $cereskey`/callisto.rc 58 72 inpath=$mcpath/ceres/`printf %03d $cereskey`/`printf %08d $sequence | cut -c 1-4`/`printf %08d $sequence | cut -c 5-8` 59 60 setstatus "start"61 73 62 74 command="./callisto -b -q -v4 -f --out=$outpath --ind=$inpath --log=$log.log --html=$log.html --config=$callistorc $sequfile"
Note:
See TracChangeset
for help on using the changeset viewer.