Changeset 42531 for branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/check.rawfix.sh
- Timestamp:
- Aug 17, 2023, 4:41:34 PM (3 years ago)
- Location:
- branches/eam_branches/ipp-20230313/tools
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
eam/rawfix.20230221/src/check.rawfix.sh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/tools
- Property svn:mergeinfo changed
/trunk/tools (added) merged: 42411,42415-42417,42429-42430,42440-42447,42449-42455,42457-42460,42462,42464-42465,42467-42468,42485
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20230313/tools/eam/rawfix.20230221/src/check.rawfix.sh
r42406 r42531 14 14 15 15 # make the rawfix database to track rawfix operations 16 set DBHOST = "ipp 060"16 set DBHOST = "ippc190" 17 17 set DBNAME = "rawfix" 18 set DBUSER = "dvo"19 set DBPASS = "dvo"18 # set DBUSER = "dvo" 19 # set DBPASS = "dvo" 20 20 21 21 # set DBOPTS = "-B --skip-column-names -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME" 22 set DBOPTS = "- B -h $DBHOST -u $DBUSER -p$DBPASS$DBNAME"22 set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -B -h $DBHOST $DBNAME" 23 23 24 24 if ($mode == "all") then … … 28 28 endif 29 29 30 mysql $DBOPTS -e "select dateobs, state from nights"30 mysql $DBOPTS -e "select dateobs, iter, state from nights" 31 31 exit 0 32 32 endif … … 49 49 50 50 set mynight = $2 51 mysql $DBOPTS - e "select dateobs, statefrom nights where (dateobs = '$mynight')"51 mysql $DBOPTS -E -e "select * from nights where (dateobs = '$mynight')" 52 52 exit 0 53 53 endif … … 61 61 set mystate = $2 62 62 63 if ($mystate == "new") goto good_state 64 if ($mystate == "rsync") goto good_state 65 if ($mystate == "md5sum.new") goto good_state 66 if ($mystate == "md5sum.done") goto good_state 67 if ($mystate == "md5sum.fail") goto good_state 68 if ($mystate == "ckchip.new") goto good_state 69 if ($mystate == "ckchip.done") goto good_state 70 if ($mystate == "ckchip.fail") goto good_state 71 if ($mystate == "fixchip.new") goto good_state 72 if ($mystate == "fixchip.done") goto good_state 73 if ($mystate == "fixchip.fail") goto good_state 63 if ($mystate == "ckchip.new") goto good_state 64 if ($mystate == "ckchip.done") goto good_state 65 if ($mystate == "ckchip.fail") goto good_state 66 if ($mystate == "fixchip.new") goto good_state 67 if ($mystate == "fixchip.done") goto good_state 68 if ($mystate == "fixchip.fail") goto good_state 69 if ($mystate == "md5sum.new") goto good_state 70 if ($mystate == "md5sum.done") goto good_state 71 if ($mystate == "md5sum.fail") goto good_state 72 if ($mystate == "md5chk.new") goto good_state 73 if ($mystate == "md5chk.done") goto good_state 74 if ($mystate == "md5chk.fail") goto good_state 75 if ($mystate == "burntool.new") goto good_state 76 if ($mystate == "burntool.done") goto good_state 77 if ($mystate == "burntool.fail") goto good_state 74 78 75 79 echo "ERROR: unknown mode $mystate" … … 77 81 78 82 good_state: 79 mysql $DBOPTS -e "select dateobs from nights where (state = '$mystate')" 83 set t = `date +%T..%N` 84 mysql $DBOPTS -e "select dateobs, iter from nights where (state = '$mystate')" | awk -v T=$t '(NR == 1){print $0, "timestamp"}(NR > 1){print $1, $2, T}' 80 85 exit 0 81 86 endif
Note:
See TracChangeset
for help on using the changeset viewer.
