Changeset 10014 for trunk/Mars/datacenter/scripts
- Timestamp:
- 10/18/10 17:17:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/jobmanager
r10004 r10014 47 47 echo -n `date +%F\ %T`" starting jobmanager for setup "$AUTOMATIONSETUP >> $jmscriptlog 2>&1 48 48 49 user=`whoami` 50 49 51 # choose commands according to queueing system (defined in setup) 50 52 case $queuesys in … … 61 63 pbs) echo " on queuing system 'pbs'" >> $jmscriptlog 2>&1 62 64 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 } '" 64 67 break 65 68 ;; … … 77 80 78 81 prev=$max 79 user=`whoami`80 82 currentnode=$minnode 81 83 numevaluated=0 … … 177 179 q1=( `echo ${q[@]} | egrep -o "Owner$user"`) 178 180 queued=${#q1[@]} 179 # get scripts in queue181 # get number of scripts in queue 180 182 q2=( `echo ${q[@]} | egrep -o "${scripts[$i]}"`) 181 183 queuedscript=${#q2[@]}
Note:
See TracChangeset
for help on using the changeset viewer.