Ignore:
Timestamp:
08/22/06 16:50:52 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r7913 r7914  
    3838   for (( i=0 ; i < ${#scripts[@]} ; i++ ))
    3939   do
    40       date  #>> $scriptlog 2>&1
    41       echo "sleeping $sleeptime..." #>> $scriptlog 2>&1
     40      date  >> $scriptlog 2>&1
     41      echo "sleeping $sleeptime..." >> $scriptlog 2>&1
    4242      sleep $sleeptime
    4343      dayofweek=`date +%u`
    4444      hour=`date +%k`
    4545      source `dirname $0`/sourcefile
    46       echo "script: ${scripts[$i]}" #>> $scriptlog 2>&1
    47 #      echo " day: $dayofweek hour: $hour" #>> $scriptlog 2>&1
     46      echo "script: ${scripts[$i]}" >> $scriptlog 2>&1
     47#      echo " day: $dayofweek hour: $hour" >> $scriptlog 2>&1
    4848      queued=`/usr/local/bin/condor_q -global -format "%s\n" Owner | grep -c $user`
    4949      queued=`setzero $queued`
     
    5959      num=`echo "((( $i + 1 ) * 24 ) + ( $hour + 1 ) ) - 24 - 1 " | bc `
    6060      pnoscript=${pnos[$num]}
    61       echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" #>> $scriptlog 2>&1
    62       echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" #>> $scriptlog 2>&1
    63 #      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" #>> $scriptlog 2>&1
     61      echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" >> $scriptlog 2>&1
     62      echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $scriptlog 2>&1
     63#      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $scriptlog 2>&1
    6464     
    6565      if [ "$queued" -gt "$pnototal" ]
     
    7373      fi
    7474
     75      # get todofile
     76      lockfile=$lockpath/lock-getting-${script[$i]}-list.txt
     77      checklock  >> $scriptlog 2>&1
    7578      singleprocess="yes"
    7679      gettodo
     80      rm -v $lockfile >> $scriptlog 2>&1
    7781
    7882      date=`date +%Y/%m/%d`
    7983      date2=`date +%Y-%m-%d`
    8084      condordir=$logpath/condor/$date
    81       makedir $condordir #>> $scriptlog 2>&1
     85      makedir $condordir >> $scriptlog 2>&1
    8286     
    8387      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>$errorlog
Note: See TracChangeset for help on using the changeset viewer.