Changeset 20104 for trunk/Mars/hawc/processing/DiskToDB/run-star2.sh
- Timestamp:
- 09/05/21 07:13:17 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/processing/DiskToDB/run-star2.sh
r20103 r20104 32 32 readonly STAR=star 33 33 # Directory to Mars environment (usually Mars/build) 34 readonly MARS="/home/ frankm/Dateien/Mars-6.24.00/build4/"34 readonly MARS="/home/hawc/Desktop/Mars/" 35 35 # Absolut path to macros 36 readonly MACROS="/home/ frankm/Dateien/Mars-6.24.00/hawc"36 readonly MACROS="/home/hawc/Desktop/Mars-src/hawc" 37 37 readonly PROGRAM=$0 38 38 REPLACE=false … … 110 110 "\ 111 111 SELECT 112 NIGHT, RUNID 112 Calibration.NIGHT, 113 Calibration.RUNID 113 114 FROM 114 Calibration 115 Calibration 116 INNER JOIN 117 DataOnDisk 118 ON 119 DataOnDisk.Telescope = Calibration.Telescope 120 AND 121 DataOnDisk.NIGHT = Calibration.NIGHT 122 AND 123 DataOnDisk.RUNID = Calibration.RUNID 115 124 WHERE 116 Telescope=${TEL} 125 Calibration.Telescope = ${TEL} 126 AND 127 Calibration.NIGHT = ${NIGHT} 117 128 AND 118 NIGHT=${NIGHT}129 DataOnDisk.callisto = 0 119 130 ORDER BY 120 NIGHT,RUNID\131 Calibration.NIGHT, Calibration.RUNID\ 121 132 "\ 122 133 | mysql \ … … 165 176 touch "${OUT}"/.${PREFIX}.running 166 177 178 RC=0 179 # set +o pipefail 167 180 # Execute image parameter calculation and write log-file 168 181 root -b -q -l ${MACROS}/star.C'("'"${IN}"/${DATNAME}'","'"${OUT}"'")' \ 169 2>&1 | tee "${OUT}"/${PREFIX}.log 170 171 # Remember exit status of callisto 172 RC=${PIPESTATUS[0]} 182 2>&1 | tee "${OUT}"/${PREFIX}.log || RC=1 183 184 # RC=$? 185 # set -o pipefail 186 187 # Remember exit status of star 188 # RC=${PIPESTATUS[0]} 173 189 174 190 echo RC=${RC} | tee -a "${OUT}"/${PREFIX}.log … … 182 198 then 183 199 touch "${OUT}"/.${PREFIX}.success 184 else185 UpdateStatus ${TEL} ${NIGHT} ${DATRUNID} 1186 200 fi 187 201
Note:
See TracChangeset
for help on using the changeset viewer.