submit-resolutions.sh 345 B

123456789101112131415161718
  1. #!/bin/sh
  2. FILE_LIST=$1
  3. OUTDIR=$2
  4. DCAFILE=$3
  5. STARTING_DIR=$PWD
  6. cd $OUTDIR
  7. while read FILENAME; do
  8. AFTERSLASHNAME=${FILENAME##*/}
  9. BASENAME=${AFTERSLASHNAME%.*}
  10. sbatch /lustre/nyx/hades/user/parfenov/mpd_summer2019/real-flow/example-resolutions.sh ${FILENAME} ${OUTDIR}/${BASENAME}_res_out.root ${DCAFILE}
  11. done <$FILE_LIST
  12. cd $STARTING_DIR