Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7938 r7944 37 37 # 38 38 39 source `dirname $0`/sourcefile 40 printprocesslog "INFO starting $0" 39 41 program=callisto 40 source `dirname $0`/sourcefile 42 column=fCallisto 41 43 42 44 set -C 43 45 44 # define callisto.rc files 45 callistorcnew=$setuppath/$program/callisto.rc 46 callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc 47 48 column=fCallisto 49 #pno=500 # number of processes, i.e. number of todo-files 50 51 scriptlogpath=$runlogpath/$program 52 makedir $scriptlogpath 53 scriptlog=$scriptlogpath/run$program-$datetime.log 54 46 scriptlog=$runlogpath/run$program-$datetime.log 55 47 date >> $scriptlog 2>&1 56 48 … … 67 59 # run calibration for sequence 68 60 echo "run $program for sequence $sequence..." >> $scriptlog 2>&1 61 printprocesslog "INFO starting $program for sequence $sequence" 69 62 no=`printf %08d $sequence | cut -c 0-4` 70 63 no2=`printf %08d $sequence` … … 73 66 outpath="$datapath/$program/$no/$no2" 74 67 makedir $outpath >> $scriptlog 2>&1 75 76 68 sequfile="$sequpath/$no/sequence$no2.txt" 77 69 70 # define callisto.rc files 71 callistorcnew=$setuppath/$program/callisto.rc 72 callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc 78 73 # find callisto.rc file 79 74 if [ -e $outpath/callisto.rc ] … … 99 94 case $check1 in 100 95 0) echo " check1=$check1 -> everything ok -> doing update..." >> $scriptlog 2>&1 96 printprocesslog "INFO $program finished successfully for sequence $sequence" 101 97 # running merpp update if calibration worked 102 98 # finding files, which have to be updated … … 113 109 makedir $merpplogpath >> $scriptlog 2>&1 114 110 111 printprocesslog "INFO doing merppupdate for sequence $sequence" 115 112 # updated calibrated data files with the information from the cc and caco files 116 113 for calfile in ${calfiles[@]} … … 127 124 then 128 125 echo "no ccfile found for run "$runno >> $scriptlog 2>&1 126 printprocesslog "ERROR no ccfile found for $calfile" 129 127 com=$Fnoccfile 130 128 comadd=$runno … … 163 161 check2=$? 164 162 case $check2 in 165 0) echo " check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;; 166 *) echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1 163 0) echo " check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1 164 printprocesslog "INFO merppupdated $calfile sucessfully with $ccfile" 165 ;; 166 *) echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1 167 printprocesslog "ERROR merppccupdate failed for $calfile" 167 168 com=$Fmerppcc 168 169 comadd=$runno … … 173 174 check3=$? 174 175 case $check3 in 175 0) echo " check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;; 176 *) echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1 176 0) echo " check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1 177 printprocesslog "INFO merppupdated $calfile sucessfully with $cacofile" 178 ;; 179 *) echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1 180 printprocesslog "ERROR merppcacoupdate failed for $calfile" 177 181 com=$Fmerppcaco 178 182 comadd=$runno … … 183 187 ;; 184 188 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 189 printprocesslog "ERROR $program failed for sequence $sequence" 185 190 com=$Fcallisto 186 191 check=$check1
Note:
See TracChangeset
for help on using the changeset viewer.