IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2023, 11:57:03 AM (3 years ago)
Author:
eugene
Message:

bug fixes, making iterations work

File:
1 edited

Legend:

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

    r42400 r42446  
    22
    33if ($#argv < 1) then
    4   echo "USAGE: update.rawfix.sh (night) (state) [quality]"
     4  echo "USAGE: update.rawfix.sh (night) (state) [iter]"
    55  echo "   EG: update.rawfix.sh 20100501 new"
    66  exit 2
     
    99set mynight = $1
    1010set state   = $2
     11
     12set iter = ""
     13if ($#argv == 3) then
     14  set iter = ", iter = $3"
     15endif
    1116
    1217# make the rawfix database to track rawfix operations
     
    1823set DBOPTS = "-B --skip-column-names -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME"
    1924
    20 mysql $DBOPTS -e "update nights set state = '$state' where (dateobs = '$mynight')"
     25mysql $DBOPTS -e "update nights set state = '$state' $iter where (dateobs = '$mynight')"
    2126exit 0
Note: See TracChangeset for help on using the changeset viewer.