Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
OpenPBS Job Submission
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
==== Job Submission Script (sendjobs.sh) ==== <syntaxhighlight lang="bash"> #!/bin/bash if [[ $# -ne 1 ]]; then echo "illegal number of parameters" exit fi export runlist=$1 export OUTPUT_DIR=/home/brash/CDetOptical/data echo "Reading runs from $runlist" #submit a job for each file in filelist for run in `cat $runlist` do echo "The next run is $run" export RUN_NUMBER=$run qsub AnaBarNeutron.sh sleep 10 done echo "All finished ... :)" </syntaxhighlight> ==== PBS Job Script (AnaBarNeutron.sh) ==== <syntaxhighlight lang="bash"> #!/bin/bash #PBS -N CDetOptical #PBS -m n #PBS -M edward.brash@glasgow.ac.uk #PBS -l walltime=40:00:00 #PBS -V export nevents=100 export tempdir=/home/brash/CDetOptical/batch export MACRO_PATH=/home/brash/CDetOptical/macros/ export MCMACRO=$tempdir/AnaBarMC_$RUN_NUMBER.mac echo "/control/macroPath $MACRO_PATH" > $MCMACRO echo "/AnaBarMC/physics/addPhysics standard_opt3" >> $MCMACRO echo "/AnaBarMC/physics/optical 1" >> $MCMACRO echo "/run/initialize" >> $MCMACRO echo "/AnaBarMC/generator/Mode 1" >> $MCMACRO echo "/AnaBarMC/generator/InputFile $tempdir/data/AnaBarMC_Gen_$RUN_NUMBER.root" >> $MCMACRO echo "/AnaBarMC/analysis/setOutputFile $tempdir/rootfiles/AnaBarMC_$RUN_NUMBER.root" >> $MCMACRO cd $tempdir source /home/brash/geant4/G4setup_batch.sh export ROOTSYS=/cern/root/pro export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH export PATH=$ROOTSYS/bin:$PATH export DISPLAY=jlabanalysis.pcs.cnu.edu:0.0 #nohup root -l -q GenCosmics.C++\($nevents,$RUN_NUMBER\) #>& /dev/null nohup /home/brash/geant4/bin/Linux-g++/AnaBarMC $MCMACRO #>& /dev/null echo "****************** AnaBarMC Finished" cp ${tempdir}/rootfiles/"AnaBarMC_$RUN_NUMBER.root" ${OUTPUT_DIR}/ rm -f ${tempdir}/rootfiles/"AnaBarMC_$RUN_NUMBER.root" rm -f $MCMACRO </syntaxhighlight>
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)