- Timestamp:
- 10/05/10 10:27:40 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r9991 r10004 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2010/10/05 Daniela Dorner 22 23 * datacenter/scripts/jobmanager: 24 - implemented pbs as third queueing system: implemented variable 25 $SOURCEFILEPATH as pbs copies script locally; implemented 26 walltime and mem 27 28 * datacenter/scripts/setup.phido.fact.mc: 29 - added (setup file for cluster in Dortmund); includes array for 30 walltime and mem 31 32 * datacenter/scripts/runcorsika, datacenter/scripts/sourcefile: 33 - implemented variable $SOURCEFILEPATH 34 35 20 36 21 37 2010/09/30 Thomas Bretz -
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 ` -
trunk/Mars/datacenter/scripts/runcorsika
r9927 r10004 28 28 # 29 29 30 source `dirname $0`/sourcefile 30 if [ "$SOURCEFILEPATH" = "" ] 31 then 32 source `dirname $0`/sourcefile 33 else 34 source $SOURCEFILEPATH/sourcefile 35 fi 31 36 printprocesslog "INFO starting $0" 32 37 program=corsika -
trunk/Mars/datacenter/scripts/sourcefile
r9886 r10004 44 44 fi 45 45 46 if [ "$SOURCEFILEPATH" = "" ] 47 then 48 export SOURCEFILEPATH=`dirname $0` 49 fi 50 46 51 # possible solution for $0 problem: 47 52 # ${BASH_SOURCE[0]} 48 53 # but has to be checked and tested more carefully 49 54 # should solve at least problem with login-shell and with source 50 source `dirname $0`/setup.$AUTOMATIONSETUP55 source $SOURCEFILEPATH/setup.$AUTOMATIONSETUP 51 56 52 57 datetime=`date +%F-%H-%M-%S`
Note:
See TracChangeset
for help on using the changeset viewer.