Changeset 10014 for trunk


Ignore:
Timestamp:
10/18/10 17:17:08 (14 years ago)
Author:
Daniela Dorner
Message:
 
File:
1 edited

Legend:

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

    r10004 r10014  
    4747echo -n `date +%F\ %T`" starting jobmanager for setup "$AUTOMATIONSETUP >> $jmscriptlog 2>&1
    4848
     49user=`whoami`
     50
    4951# choose commands according to queueing system (defined in setup)
    5052case $queuesys in
     
    6163      pbs)  echo " on queuing system 'pbs'" >> $jmscriptlog 2>&1
    6264            alias 'queuesubmit'='$pbspath/qsub -l walltime=$walltime -l pmem=$pmem -v AUTOMATIONSETUP=$AUTOMATIONSETUP,SOURCEFILEPATH=$SOURCEFILEPATH -e `echo $runlogpath`/error-`echo $date`.log -o `echo $runlogpath`/log-`echo $date`.log `echo $noderequirementsub` `echo $scriptspath`/`echo ${scripts[$i]}` '
    63             alias 'checkqueue'="$pbspath/qstat -a | awk ' { print \"Owner\"\$2\" \" \$4\"Jobstatus\"\$10 } '"
     65            # check queue (restricted to current user only)
     66            alias 'checkqueue'="$pbspath/qstat -a -u $user | awk ' { print \"Owner\"\$2\" \" \$4\"Jobstatus\"\$10 } '"
    6467            break
    6568            ;;
     
    7780
    7881prev=$max
    79 user=`whoami`
    8082currentnode=$minnode
    8183numevaluated=0
     
    177179      q1=( `echo ${q[@]} | egrep -o "Owner$user"`)
    178180      queued=${#q1[@]}
    179       # get scripts in queue
     181      # get number of scripts in queue
    180182      q2=( `echo ${q[@]} | egrep -o "${scripts[$i]}"`)
    181183      queuedscript=${#q2[@]}
Note: See TracChangeset for help on using the changeset viewer.