Changeset 42445 for trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh
- Timestamp:
- Apr 7, 2023, 4:50:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh
r42430 r42445 49 49 50 50 set mynight = $2 51 mysql $DBOPTS -e "select dateobs, statefrom nights where (dateobs = '$mynight')"51 mysql $DBOPTS -e "select * from nights where (dateobs = '$mynight')" 52 52 exit 0 53 53 endif … … 74 74 if ($mystate == "md5chk.fail") goto good_state 75 75 76 # stage 2:77 if ($mystate == "fixchip_s2.new") goto good_state78 if ($mystate == "fixchip_s2.done") goto good_state79 if ($mystate == "fixchip_s2.fail") goto good_state80 if ($mystate == "md5sum_s2.new") goto good_state81 if ($mystate == "md5sum_s2.done") goto good_state82 if ($mystate == "md5sum_s2.fail") goto good_state83 if ($mystate == "md5chk_s2.new") goto good_state84 if ($mystate == "md5chk_s2.done") goto good_state85 if ($mystate == "md5chk_s2.fail") goto good_state86 87 # stage 3:88 if ($mystate == "fixchip_s3.new") goto good_state89 if ($mystate == "fixchip_s3.done") goto good_state90 if ($mystate == "fixchip_s3.fail") goto good_state91 if ($mystate == "ckchip_s3.new") goto good_state92 if ($mystate == "ckchip_s3.done") goto good_state93 if ($mystate == "ckchip_s3.fail") goto good_state94 95 # disable the rsyncs stages: run in directory from b-node96 # if ($mystate == "rsync_s1.new") goto good_state97 # if ($mystate == "rsync_s1.done") goto good_state98 # if ($mystate == "rsync_s1.fail") goto good_state99 # if ($mystate == "rsync_s2.new") goto good_state100 # if ($mystate == "rsync_s2.done") goto good_state101 # if ($mystate == "rsync_s2.fail") goto good_state102 103 76 echo "ERROR: unknown mode $mystate" 104 77 exit 2 … … 106 79 good_state: 107 80 set t = `date +%T..%N` 108 mysql $DBOPTS -e "select dateobs, curtime() as timestamp from nights where (state = '$mystate')" | awk -v T=$t '(NR == 1){print $0}(NR > 1){print $1, T}'81 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}' 109 82 exit 0 110 83 endif
Note:
See TracChangeset
for help on using the changeset viewer.
