Changeset 20093 for trunk/Mars/hawc
- Timestamp:
- 04/28/21 18:27:29 (4 years ago)
- Location:
- trunk/Mars/hawc/processing/DiskToDB
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/processing/DiskToDB/extract-raw-header2.sh
r20091 r20093 32 32 # define variables 33 33 OUTPUT=insert-raw.sql 34 readonly FITSDUMP="/home/frankm/Dateien/FACT++ _0/build/fitsdump"34 readonly FITSDUMP="/home/frankm/Dateien/FACT++/build/fitsdump" 35 35 readonly PROGRAM=$0 36 36 INSERT="INSERT INTO" … … 167 167 # necessary, removes enclosures around hex-numbers and adds 168 168 # commas after all lines except the last one 169 # FIXME: fitsdump -h alway returns error. Must be fixed in FACT++170 # so pipe errors from this are ignored. Also fitsdump outputs171 # some info to filedescriptor 2. So error outputs are now172 # redirected to filedescriptor 4, which redirects to LOG.173 set +o pipefail174 169 RESULT=`${FITSDUMP} -h "${ROOT}" 2>&4 \ 175 170 | grep "${TOGREP}" \ … … 189 184 | sed "s/^\(.*\)'\(0x[0-9a-f]*\)'\(.*\)$/\1\2\3/g" \ 190 185 | sed '$!s/$/,/'` 191 set -o pipefail192 186 193 187 # compare to refference header and count commas -
trunk/Mars/hawc/processing/DiskToDB/run-callisto2.sh
r20091 r20093 166 166 RC=${PIPESTATUS[0]} 167 167 168 CALLERR=`grep "Error" "${OUT}"/${PREFIX}.log || true`169 if [ -n "${CALLERR}" ]170 then171 echo "ERROR: Line $LINENO error in callisto.C" >&2172 echo "error was: ${CALLERR}" >&2173 exit 1174 fi175 168 176 169 # Remember exit status of callisto -
trunk/Mars/hawc/processing/DiskToDB/run-root2sql2.sh
r20091 r20093 28 28 29 29 # Path to the executable 30 readonly ROOT2SQL="/home/frankm/Dateien/FACT++ _0/build/root2sql"30 readonly ROOT2SQL="/home/frankm/Dateien/FACT++/build/root2sql" 31 31 readonly PROGRAM=${0} 32 32 -
trunk/Mars/hawc/processing/DiskToDB/run-scripts.sh
r20091 r20093 77 77 readonly DATE=`date +%Y%m%d_%H%M` 78 78 readonly LOG="./log/${SCRPTN}_${DATE}.log" 79 #exec 3>&1 1>>${LOG}80 #exec 4>>${LOG}81 exec 3>&182 exec 4>&179 exec 3>&1 1>>${LOG} 80 exec 4>>${LOG} 81 # exec 3>&1 82 # exec 4>&1 83 83 84 84 echo "Start processing data" … … 180 180 fi 181 181 182 echo "Updating database" >&3182 echo "Updating database" 183 183 184 184 echo "Nights to process:" … … 224 224 fi 225 225 226 # if [ ${STATUS} -lt "3" ] 227 if [ "a" = "b" ] 226 if [ ${STATUS} -lt "3" ] 228 227 then 229 228 # Get aux data … … 266 265 fi 267 266 268 SetStatus ${CRED} ${TEL} "4" ${NIGHT}269 267 if [ ${STATUS} -lt "5" ] 270 268 then -
trunk/Mars/hawc/processing/DiskToDB/run-star2.sh
r20091 r20093 156 156 RC=${PIPESTATUS[0]} 157 157 158 STARERR=`grep "Error" "${OUT}"/${PREFIX}.log || true`159 BADSTRG=`grep "Error in <ReplaceSubs>: bad string number:"\160 "${OUT}"/${PREFIX}.log || true`161 if [ -n "${STARERR}" ] && [ -z "${BADSTRG}" ]162 then163 echo "ERROR: Line $LINENO error in star.C" >&2164 echo "error was: ${STARERR}" >&2165 exit 1166 fi167 168 158 echo RC=${RC} | tee -a "${OUT}"/${PREFIX}.log 169 159 echo ${RC} > "${OUT}"/.${PREFIX}.done
Note:
See TracChangeset
for help on using the changeset viewer.