Ignore:
Timestamp:
06/12/09 14:32:19 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

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

    r9355 r9457  
    5353         pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} )
    5454         pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} )
     55         break
     56         ;;
     57  ctamc) echo "running jobmanager for cta mc" >> $jmscriptlog 2>&1
     58         scripts=( "runsimtel" )
     59         scriptscolname=( "fCorsikaSimtelArray" )
     60         pnosweek=( ${pnosimtel[@]} )
     61         pnoswe=( ${pnosimtelwe[@]} )
    5562         break
    5663         ;;
     
    146153      #get total number of allowed process for current time
    147154      hour=`date +%k`
    148       totalpno=${pnototal[$hour]}
     155      #totalpno=${pnototal[$hour]}
     156      if [ ${pnototal[$hour]} -lt $totalmax ]
     157      then
     158         totalpno=${pnototal[$hour]}
     159      else
     160         totalpno=$totalmax
     161      fi
     162     
    149163      #choose array according to the day of the week
    150164      dayofweek=`date +%u`
  • trunk/MagicSoft/Mars/datacenter/scripts/setup

    r9170 r9457  
    7575sleeptimelimit=360 #360
    7676errorsleeptimedefault=60 #60
    77 max=42 #maximum number of processes
     77max=42 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
     78totalmax=40 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
    7879
    7980#
Note: See TracChangeset for help on using the changeset viewer.