- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7938 r7944 33 33 # 34 34 35 source `dirname $0`/sourcefile 36 printprocesslog "INFO starting $0" 35 37 program=makecallistolinks 36 source `dirname $0`/sourcefile 38 column=fCallisto 37 39 38 40 set -C 39 41 40 callistorcseq=callisto.rc 41 callistorcnew=callisto_Dec04Jan05.rc 42 43 scriptlogpath=$runlogpath/$program 44 makedir $scriptlogpath 45 scriptlog=$scriptlogpath/$program`date +%F`.log 46 42 scriptlog=$runlogpath/$program`date +%F`.log 47 43 date >> $scriptlog 2>&1 48 44 … … 51 47 checklock >> $scriptlog 2>&1 52 48 49 callistorcseq=callisto.rc 50 callistorcnew=callisto_Dec04Jan05.rc 53 51 # reason why calibration with standard callisto.rc fails 54 52 reason1="Pulse is too much to the right, cannot go beyond logain limits!" … … 60 58 then 61 59 echo "nothing to do -> exit" >> $scriptlog 2>&1 62 rm -v $lockfile>> $scriptlog 2>&160 finish >> $scriptlog 2>&1 63 61 fi 64 65 column=fCallisto66 table=SequenceProcessStatus67 62 68 63 cd $mars 69 64 70 65 # make links for callisto.rc for which the callisto.log contains reason 66 printprocesslog "INFO linking callisto.rc files" 71 67 for file in $files 72 68 do … … 80 76 if ! ls -l $callistorc | grep $callistorcnew >> $scriptlog 2>&1 81 77 then 78 printprocesslog "INFO linking $callistorcnew to $callistorc for sequ $sequ" 82 79 # resetting the calibration 83 80 echo "resetting the callisto for sequence $sequ" >> $scriptlog 2>&1 … … 90 87 case $check1 in 91 88 1) echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1 89 printprocesslog "INFO resetted calibration successfully for sequence $sequ" 90 ;; 91 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 92 printprocesslog "WARN connection to DB failed" 93 check="no" 92 94 ;; 93 95 *) echo " check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&1 94 continue ;; 96 printprocesslog "ERROR resetcolumn.C failed for fCallisto for sequ $sequ" 97 continue 98 ;; 95 99 esac 96 100 #linking callisto.rc … … 100 104 done 101 105 102 rm -v $lockfile>> $scriptlog 2>&1106 finish >> $scriptlog 2>&1 103 107 104 set +C105 106 date >> $scriptlog 2>&1107
Note:
See TracChangeset
for help on using the changeset viewer.