IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42455


Ignore:
Timestamp:
Apr 21, 2023, 4:39:59 PM (3 years ago)
Author:
eugene
Message:

enable ippc190 mysql 5.7

Location:
trunk/tools/eam/rawfix.20230221
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/Makefile

    r42454 r42455  
    1818check.rawfix.sh \
    1919queue.rawfix.sh \
    20 update.rawfix.sh \
    21 create.rawfix.sh
     20update.rawfix.sh
    2221
    2322# these are in order used by the tasks
     
    4342triple.fix.pl \
    4443fix_chip_failures.pl \
     44create.rawfix.sh
    4545
    4646PROGRAMS = $(PANTASKS) $(DB_PROG) $(PERL_PROG) $(TOOLS)
  • trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh

    r42454 r42455  
    1616set DBHOST = "ippc190"
    1717set DBNAME = "rawfix"
    18 set DBUSER = "dvo"
    19 set DBPASS = "dvo"
     18# set DBUSER = "dvo"
     19# set DBPASS = "dvo"
    2020
    2121# set DBOPTS = "-B --skip-column-names -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME"
    22 set DBOPTS = "-B -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME"
     22set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -B -h $DBHOST $DBNAME"
    2323
    2424if ($mode == "all") then
  • trunk/tools/eam/rawfix.20230221/src/create.rawfix.sh

    r42451 r42455  
    11#!/bin/csh
     2
     3echo "do not use without caution"
     4exit 2
    25
    36# make the rawfix database to track rawfix operations
  • trunk/tools/eam/rawfix.20230221/src/queue.rawfix.sh

    r42454 r42455  
    1212set DBHOST = "ippc190"
    1313set DBNAME = "rawfix"
    14 set DBUSER = "dvo"
    15 set DBPASS = "dvo"
     14# set DBUSER = "dvo"
     15# set DBPASS = "dvo"
     16
     17set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -h $DBHOST $DBNAME"
    1618
    1719if ($mode == "list") then
     
    4951  endif
    5052
    51   mysql -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME -e "insert into nights (dateobs, state) values ('$mynight', 'new')"
     53  mysql $DBOPTS -e "insert into nights (dateobs, state) values ('$mynight', 'new')"
    5254  exit 0
    5355endif
  • trunk/tools/eam/rawfix.20230221/src/rawfix.pt

    r42451 r42455  
    11## pantasks scripts to manage the raw exposure data repair / cleanup
    2 
    3 $TPOLL = 5
    4 $TEXEC = 5
    5 $RPOLL = 5
    6 $REXEC = 5
    7 $VERBOSE = 1
    8 $NETWORK = 1
    9 
    10 # use this to find the files in this local directory
    11 # $mypath = /home/panstarrs/eugene/rawfix.20230221
    12 
    13 # NOTE: use a directory located on a b-node so the results can
    14 # be seen by both ATRC and ITC machines
    15 $mypath = /data/ippb07.0/home/eugene/rawfix.20230221
    16 
    17 # I need to avoid ATRC machines for jobs which try to access Nebulous or GPC
    18 # I cannot define an avoidance list for a job, so I need to specify the
    19 # required host
    20 
    21 # run check_chip_locations.pl on this machine:
    22 $HOST_CKCHIP  = ippc180
    23 
    24 if (not($?LOGDIR))
    25   $LOGDIR = $mypath/pantasks_logs
    26   mkdir $LOGDIR
    27 end
    28 
    29 # these are listed in stage order, but the
    30 # order is this file is not determinative, only the
    31 # change of state from STAGE1.new -> STAGE1.done -> STAGE2.new
    32 input rawfix.advance.pt
    33 input rawfix.ckchip.pt
    34 input rawfix.fixchip.pt
    35 input rawfix.md5sum.pt
    36 input rawfix.md5chk.pt
    37 
    38 if (not($?INIT_RAWFIX))
    39   control host add $HOST_CKCHIP
    40   $INIT_RAWFIX = 1
    41 end
    422
    433######################### UTILITIES #################################
  • trunk/tools/eam/rawfix.20230221/src/update.rawfix.sh

    r42454 r42455  
    1818set DBHOST = "ippc190"
    1919set DBNAME = "rawfix"
    20 set DBUSER = "dvo"
    21 set DBPASS = "dvo"
     20# set DBUSER = "dvo"
     21# set DBPASS = "dvo"
    2222
    23 set DBOPTS = "-B --skip-column-names -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME"
     23# set DBOPTS = "-B --skip-column-names -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME"
     24set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -B --skip-column-names -h $DBHOST $DBNAME"
    2425
    2526mysql $DBOPTS -e "update nights set state = '$state' $iter where (dateobs = '$mynight')"
Note: See TracChangeset for help on using the changeset viewer.