Changeset 18701


Ignore:
Timestamp:
12/21/16 12:37:49 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bug (variable pwfile occured twice -> renamed)
Location:
trunk/DataCheck
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/DataCheck/InfoForMWL.sh

    r18697 r18701  
    3636   printprocesslog "DEBUG sendquery QUERY: "$query
    3737   # 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 " > $file
     38   mysql $sqlpwfile -s -u $us $pw --host=$ho $db -s -e " $query " > $file
    3939}
    4040
  • trunk/DataCheck/QuickLook/SendData.sh

    r18694 r18701  
    6565   getdbsetup
    6666   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 "
    6868}
    6969
  • trunk/DataCheck/QuickLook/SendData_Internal.sh

    r18694 r18701  
    8383   printprocesslog "DEBUG sendquery QUERY: "$query
    8484   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 "
    8686   if [ "$table" == "AnalysisResultsRunLP" ]
    8787   then
    8888      query2=`echo $query | sed -e 's/AnalysisResultsRunLP/AnalysisResultsRunISDC/g'`
    8989      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 "
    9191      fi
    9292}
  • trunk/DataCheck/Sourcefile.sh

    r18694 r18701  
    173173   if [ "$sqlpw" != "" ]
    174174   then
    175       pwfile="--defaults-file=$sqlpw"
     175      sqlpwfile="--defaults-file=$sqlpw"
    176176      pw=""
    177177   fi
     
    188188   getdbsetup
    189189   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 "`
    191191   then
    192192      printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us
     
    346346   # execute query
    347347   #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`
    349349   then
    350350      printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)"
  • trunk/DataCheck/Transfer/RsyncRawToISDC.sh

    r18433 r18701  
    66program=RsyncRawToISDC
    77step=RawFileRsyncedISDC
    8 pwfile=/home_nfs/isdc/fact_opr/rsync.pwd
     8rsyncpwfile=/home_nfs/isdc/fact_opr/rsync.pwd
    99
    1010set -C
     
    100100   printprocesslog "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc
    101101   #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>&1
     102   #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1
    103103   #echo "rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1"
    104104   rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1
     
    148148      printprocesslog "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc
    149149      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>&1
     150      #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1
    151151      rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$drsfilelp $rawdirisdc >> $logfile 2>&1
    152152      check3=$?
Note: See TracChangeset for help on using the changeset viewer.