data analysis scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.3 KiB

  1. HOME=/work/leverington/beamprofilemonitor/hitdata/Scripts/Scripts_20171217
  2. mkdir -p $HOME/jobs #make the directory if it doesn't exist
  3. JOB_HOME=$HOME/jobs
  4. rm -rf $JOB_HOME/* #clean up the directory if it does exist
  5. cd $JOB_HOME
  6. for i in {1..49} #199
  7. do
  8. touch $JOB_HOME/runjob$i.sh
  9. echo "#!/bin/bash" >> $JOB_HOME/runjob$i.sh
  10. echo ". /local/env.sh" >> $JOB_HOME/runjob$i.sh
  11. echo ". /cvmfs/lhcb.cern.ch/lib/lhcb/LBSCRIPTS/LBSCRIPTS_v9r2p2/InstallArea/scripts/LbLogin.sh -c x86_64-slc6-gcc49-opt" >> $JOB_HOME/runjob$i.sh
  12. # echo ". SetupProject.sh Geant4" >> $JOB_HOME/runjob$i.sh
  13. echo "source /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/4.9.3/x86_64-slc6/setup.sh" >> $JOB_HOME/runjob$i.sh
  14. #point to the correct CERN ROOT
  15. echo "source /cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/ROOT/6.06.02/x86_64-slc6-gcc49-opt/bin/thisroot.sh " >> $JOB_HOME/runjob$i.sh
  16. #include the gsl libraries
  17. echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/work/leverington/gsl-2.4/lib " >> $JOB_HOME/runjob$i.sh
  18. #execute this command
  19. echo "/work/leverington/beamprofilemonitor/hitdata/Scripts/Scripts_20171217/convert /work/leverington/beamprofilemonitor/hitdata/HIT_17_12_2017/ run$i" >> $JOB_HOME/runjob$i.sh
  20. qsub -l os=slc6 -l ujl=20 -cwd -j yes $JOB_HOME/runjob$i.sh
  21. sleep 7
  22. done