- Timestamp:
- 04/28/21 18:27:29 (4 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.