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