Changeset 18701
- Timestamp:
- 12/21/16 12:37:49 (8 years ago)
- Location:
- trunk/DataCheck
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/DataCheck/InfoForMWL.sh
r18697 r18701 36 36 printprocesslog "DEBUG sendquery QUERY: "$query 37 37 # sendquery can't be used as it writes everything into a variable 38 mysql $ pwfile -s -u $us $pw --host=$ho $db -s -e " $query " > $file38 mysql $sqlpwfile -s -u $us $pw --host=$ho $db -s -e " $query " > $file 39 39 } 40 40 -
trunk/DataCheck/QuickLook/SendData.sh
r18694 r18701 65 65 getdbsetup 66 66 printprocesslog "DEBUG sendquery QUERY: "$query 67 mysql $ pwfile -s -u $us $pw --host=$ho $db -e " $query "67 mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query " 68 68 } 69 69 -
trunk/DataCheck/QuickLook/SendData_Internal.sh
r18694 r18701 83 83 printprocesslog "DEBUG sendquery QUERY: "$query 84 84 echo "DEBUG sendquery QUERY: "$query 85 mysql $ pwfile -s -u $us $pw --host=$ho $db -e " $query "85 mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query " 86 86 if [ "$table" == "AnalysisResultsRunLP" ] 87 87 then 88 88 query2=`echo $query | sed -e 's/AnalysisResultsRunLP/AnalysisResultsRunISDC/g'` 89 89 echo "# QUERY: "$query2 90 mysql $ pwfile -s -u $us $pw --host=$ho factdata_cp20150811 -e " $query2 "90 mysql $sqlpwfile -s -u $us $pw --host=$ho factdata_cp20150811 -e " $query2 " 91 91 fi 92 92 } -
trunk/DataCheck/Sourcefile.sh
r18694 r18701 173 173 if [ "$sqlpw" != "" ] 174 174 then 175 pwfile="--defaults-file=$sqlpw"175 sqlpwfile="--defaults-file=$sqlpw" 176 176 pw="" 177 177 fi … … 188 188 getdbsetup 189 189 printprocesslog "DEBUG sendquery QUERY: "$query 190 if ! val=`mysql $ pwfile -s -u $us $pw --host=$ho $db -e " $query "`190 if ! val=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query "` 191 191 then 192 192 printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us … … 346 346 # execute query 347 347 #numproc=`sendquery `#cannot be done with sendquery, because of row counting 348 if ! numproc=`mysql $ pwfile -s -u $us $pw --host=$ho $db -e " $query " | wc -l`348 if ! numproc=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query " | wc -l` 349 349 then 350 350 printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)" -
trunk/DataCheck/Transfer/RsyncRawToISDC.sh
r18433 r18701 6 6 program=RsyncRawToISDC 7 7 step=RawFileRsyncedISDC 8 pwfile=/home_nfs/isdc/fact_opr/rsync.pwd8 rsyncpwfile=/home_nfs/isdc/fact_opr/rsync.pwd 9 9 10 10 set -C … … 100 100 printprocesslog "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc 101 101 #echo "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1 102 #rsync -rltDvR --partial --stats --password-file=$ pwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1102 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1 103 103 #echo "rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1" 104 104 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1 … … 148 148 printprocesslog "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc 149 149 echo "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1 150 #rsync -rltDvR --partial --stats --password-file=$ pwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1150 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1 151 151 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$drsfilelp $rawdirisdc >> $logfile 2>&1 152 152 check3=$?
Note:
See TracChangeset
for help on using the changeset viewer.