Changeset 42455
- Timestamp:
- Apr 21, 2023, 4:39:59 PM (3 years ago)
- Location:
- trunk/tools/eam/rawfix.20230221
- Files:
-
- 6 edited
-
Makefile (modified) (2 diffs)
-
src/check.rawfix.sh (modified) (1 diff)
-
src/create.rawfix.sh (modified) (1 diff)
-
src/queue.rawfix.sh (modified) (2 diffs)
-
src/rawfix.pt (modified) (1 diff)
-
src/update.rawfix.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/Makefile
r42454 r42455 18 18 check.rawfix.sh \ 19 19 queue.rawfix.sh \ 20 update.rawfix.sh \ 21 create.rawfix.sh 20 update.rawfix.sh 22 21 23 22 # these are in order used by the tasks … … 43 42 triple.fix.pl \ 44 43 fix_chip_failures.pl \ 44 create.rawfix.sh 45 45 46 46 PROGRAMS = $(PANTASKS) $(DB_PROG) $(PERL_PROG) $(TOOLS) -
trunk/tools/eam/rawfix.20230221/src/check.rawfix.sh
r42454 r42455 16 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 -
trunk/tools/eam/rawfix.20230221/src/create.rawfix.sh
r42451 r42455 1 1 #!/bin/csh 2 3 echo "do not use without caution" 4 exit 2 2 5 3 6 # make the rawfix database to track rawfix operations -
trunk/tools/eam/rawfix.20230221/src/queue.rawfix.sh
r42454 r42455 12 12 set DBHOST = "ippc190" 13 13 set DBNAME = "rawfix" 14 set DBUSER = "dvo" 15 set DBPASS = "dvo" 14 # set DBUSER = "dvo" 15 # set DBPASS = "dvo" 16 17 set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -h $DBHOST $DBNAME" 16 18 17 19 if ($mode == "list") then … … 49 51 endif 50 52 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')" 52 54 exit 0 53 55 endif -
trunk/tools/eam/rawfix.20230221/src/rawfix.pt
r42451 r42455 1 1 ## pantasks scripts to manage the raw exposure data repair / cleanup 2 3 $TPOLL = 54 $TEXEC = 55 $RPOLL = 56 $REXEC = 57 $VERBOSE = 18 $NETWORK = 19 10 # use this to find the files in this local directory11 # $mypath = /home/panstarrs/eugene/rawfix.2023022112 13 # NOTE: use a directory located on a b-node so the results can14 # be seen by both ATRC and ITC machines15 $mypath = /data/ippb07.0/home/eugene/rawfix.2023022116 17 # I need to avoid ATRC machines for jobs which try to access Nebulous or GPC18 # I cannot define an avoidance list for a job, so I need to specify the19 # required host20 21 # run check_chip_locations.pl on this machine:22 $HOST_CKCHIP = ippc18023 24 if (not($?LOGDIR))25 $LOGDIR = $mypath/pantasks_logs26 mkdir $LOGDIR27 end28 29 # these are listed in stage order, but the30 # order is this file is not determinative, only the31 # change of state from STAGE1.new -> STAGE1.done -> STAGE2.new32 input rawfix.advance.pt33 input rawfix.ckchip.pt34 input rawfix.fixchip.pt35 input rawfix.md5sum.pt36 input rawfix.md5chk.pt37 38 if (not($?INIT_RAWFIX))39 control host add $HOST_CKCHIP40 $INIT_RAWFIX = 141 end42 2 43 3 ######################### UTILITIES ################################# -
trunk/tools/eam/rawfix.20230221/src/update.rawfix.sh
r42454 r42455 18 18 set DBHOST = "ippc190" 19 19 set DBNAME = "rawfix" 20 set DBUSER = "dvo"21 set DBPASS = "dvo"20 # set DBUSER = "dvo" 21 # set DBPASS = "dvo" 22 22 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" 24 set DBOPTS = "--defaults-extra-file=~/.my.cnf.rawfix -B --skip-column-names -h $DBHOST $DBNAME" 24 25 25 26 mysql $DBOPTS -e "update nights set state = '$state' $iter where (dateobs = '$mynight')"
Note:
See TracChangeset
for help on using the changeset viewer.
