Changeset 10004 for trunk/Mars/datacenter/scripts/jobmanager
- Timestamp:
- 10/05/10 10:27:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/jobmanager
r9604 r10004 20 20 # Author(s): Daniela Dorner 05/2006 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-20 0922 # Copyright: MAGIC Software Development, 2000-2010 23 23 # 24 24 # … … 26 26 # 27 27 # This a script, which launches other scripts (all scripts, that are run 28 # on primary basis 28 # on primary basis) 29 29 # 30 30 … … 57 57 # FIXME: get complete scriptname (including command line option), needed for runstereo 58 58 alias 'checkqueue'="/opt/gridengine/bin/lx26-amd64/qstat \`echo \$noderequirementstat\` | awk ' { print \"Owner\"\$4\" \" \$3\"Jobstatus\"\$5 } '" 59 break 60 ;; 61 pbs) echo " on queuing system 'pbs'" >> $jmscriptlog 2>&1 62 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 } '" 59 64 break 60 65 ;; … … 90 95 step=${scriptscolname[$i]} 91 96 getstepinfo 97 # check if walltime has to be set 98 if [ "$setwalltime" = "yes" ] 99 then 100 walltime=${walltimes[$i]} 101 fi 102 # check if memory has to be set 103 if [ "$setpmem" = "yes" ] 104 then 105 pmem=${pmems[$i]} 106 fi 107 # check if the script is restricted to one node 108 # (i.e. where output of previous step(s) is stored) 109 # this information is taken from the steps.rc file 92 110 if [ "$noderestricted" = "yes" ] 93 111 then … … 163 181 queuedscript=${#q2[@]} 164 182 # get running scripts 165 q3=( `echo ${q[@]} | egrep -o \("${scripts[$i]}"Jobstatus2\|"${scripts[$i]}"Jobstatusr\)` ) 183 # condor: 2 184 # sge: r 185 # pbs: R 186 q3=( `echo ${q[@]} | egrep -o \("${scripts[$i]}"Jobstatus2\|"${scripts[$i]}"Jobstatusr\|"${scripts[$i]}"JobstatusR\)` ) 166 187 runningscript=${#q3[@]} 167 188 stillinqueue=`echo $queuedscript - $runningscript | bc `
Note:
See TracChangeset
for help on using the changeset viewer.