Changeset 7469 for trunk


Ignore:
Timestamp:
01/31/06 17:42:30 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/setstatus.C

    r7467 r7469  
    116116}
    117117
    118 Int_t SetInfluences(MSQLServer &serv, TEnv &rc, TString primary, TString table, TString column, TString statustime, TString failed, TString starttime, TString failedtime, Bool_t resetall)
     118Int_t SetInfluences(MSQLServer &serv, TEnv &rc, TString primary, TString table, TString column, TString statustime, TString failedcode, TString failedcomment, TString starttime, TString failedtime, Bool_t resetall)
    119119{
    120120    cout << "set influenes for " << table << "." << column << endl;
     
    123123    TString influences  = rc.GetValue(table+"."+column+".Influences", "");
    124124
    125     TString query(Form("UPDATE %s SET %s=%s, fFailed=%s, fFailedTime=%s ",
    126                        table.Data(), column.Data(), statustime.Data(), failed.Data(),
    127                        failedtime.Data()));
     125    TString query(Form("UPDATE %s SET %s=%s, fFailedCode=%s, fFailedComment='%s', fFailedTime=%s ",
     126                       table.Data(), column.Data(), statustime.Data(), failedcode.Data(),
     127                       failedcomment.Data(), failedtime.Data()));
    128128    if (starttime.CompareTo("noreset"))
    129129        query += Form(", fStartTime=%s", starttime.Data());
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7467 r7469  
    4444
    4545# define callisto.rc files
    46 callistorcnew=$setuppath/$program/$program.rc
    47 callistorcmarapr05=$setuppath/$program/$program_MarApr05.rc
     46callistorcnew=$setuppath/$program/callisto.rc
     47callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc
    4848
    4949table=SequenceProcessStatus
     
    147147  no=`printf %08d $sequence | cut -c 0-4`
    148148  no2=`printf %08d $sequence`
     149  var1=$no
     150  var2=$no2
    149151  outpath="$datapath/$program/$no/$no2"
    150152  echo "outpath: "$outpath >> $scriptlog 2>&1
     
    155157 
    156158  # find callisto.rc file
    157   if [ -e $outpath/$program.rc ]
     159  if [ -e $outpath/callisto.rc ]
    158160  then
    159161     echo "found $program.rc in $outpath -> using this " >> $scriptlog 2>&1
    160      callistorcseq=$outpath/$program.rc
     162     callistorcseq=$outpath/callisto.rc
    161163  else
    162164     echo "no $program.rc found in $outpath -> making link " >> $scriptlog 2>&1
    163165     if [ 49735 -lt $sequence ] && [ $sequence -lt 53516 ]
    164166     then
    165         ln -vs $callistorcmarapr05 $outpath/$program.rc >> $scriptlog 2>&1
     167        ln -vs $callistorcmarapr05 $outpath/callisto.rc >> $scriptlog 2>&1
    166168     else
    167         ln -vs $callistorcnew $outpath/$program.rc >> $scriptlog 2>&1
     169        ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1
    168170     fi
    169      callistorcseq=$outpath/$program.rc
     171     callistorcseq=$outpath/callisto.rc
    170172  fi
    171173
    172174  echo "run $program..." >> $scriptlog 2>&1
    173   setstatus "start"
     175  setstatus "start" >> $scriptlog 2>&1
    174176
    175177  ./callisto -b -q -v4 -f -raw --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --out=$outpath --config=$callistorcseq $sequfile  2>> $scriptlog > /dev/null
     
    265267  # set status
    266268  echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
    267   setstatus "stop"
     269  setstatus "stop"  >> $scriptlog 2>&1
    268270done
    269271
  • trunk/MagicSoft/Mars/datacenter/scripts/runganymed

    r7467 r7469  
    142142  no=`printf %08d $dataset | cut -c 0-5`
    143143  no2=`printf %08d $dataset`
     144  var1=$no
     145  var2=$no2
    144146  outpath="$datapath/$program/$no/$no2"
    145147  echo "outpath: "$outpath >> $scriptlog 2>&1
     
    160162 
    161163  echo "run $program..." >> $scriptlog 2>&1
    162   setstatus "start"
     164  setstatus "start" >> $scriptlog 2>&1
    163165
    164166  ./ganymed -b -q -v4 -f --ind=$datapath/star --config=$ganymedrc --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --out=$outpath $datasetfile  2>> $scriptlog> /dev/null
     
    173175  esac
    174176  echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1
    175   setstatus "stop"
     177  setstatus "stop" >> $scriptlog 2>&1
    176178done
    177179
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r7467 r7469  
    142142  no=`printf %08d $sequence | cut -c 0-4`
    143143  no2=`printf %08d $sequence`
     144  var1=$no
     145  var2=$no2
    144146  outpath="$datapath/$program/$no/$no2"
    145147  inpath=`echo $outpath | sed -e 's/$program/callisto/'`
     
    152154 
    153155  echo "run $program..." >> $scriptlog 2>&1
    154   setstatus "start"
     156  setstatus "start" >> $scriptlog 2>&1
    155157
    156158  ./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile  2>> $scriptlog> /dev/null
     
    165167  esac
    166168  echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
    167   setstatus "stop"
     169  setstatus "stop" >> $scriptlog 2>&1
    168170done
    169171
Note: See TracChangeset for help on using the changeset viewer.