IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 14, 2023, 3:08:37 PM (3 years ago)
Author:
eugene
Message:

more work on the rawfix scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh

    r42406 r42411  
    6161  set mystate = $2
    6262
    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 == "rsync_s1.new")  goto good_state
     70  if ($mystate == "rsync_s1.done") goto good_state
     71  if ($mystate == "rsync_s1.fail") goto good_state
     72  if ($mystate == "md5sum.new")    goto good_state
     73  if ($mystate == "md5sum.done")   goto good_state
     74  if ($mystate == "md5sum.fail")   goto good_state
     75  if ($mystate == "rsync_s2.new")  goto good_state
     76  if ($mystate == "rsync_s2.done") goto good_state
     77  if ($mystate == "rsync_s2.fail") goto good_state
     78  if ($mystate == "md5chk.new")    goto good_state
     79  if ($mystate == "md5chk.done")   goto good_state
     80  if ($mystate == "md5chk.fail")   goto good_state
    7481
    7582  echo "ERROR: unknown mode $mystate"
     
    7784
    7885  good_state:
    79   mysql $DBOPTS -e "select dateobs from nights where (state = '$mystate')"
     86  set t = `date +%T..%N`
     87  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}'
    8088  exit 0
    8189endif
Note: See TracChangeset for help on using the changeset viewer.