submit-flow.sh 429 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. FILE_LIST=$1
  3. OUTDIR=$2
  4. RES_FIT_FILE=$3
  5. DCAFILE=$4
  6. # COMMIT=Kaons
  7. # OUTDIR=$OUT/$COMMIT
  8. # mkdir -p $OUTDIR
  9. STARTING_DIR=$PWD
  10. cd $OUTDIR
  11. while read FILENAME; do
  12. AFTERSLASHNAME=${FILENAME##*/}
  13. BASENAME=${AFTERSLASHNAME%.*}
  14. sbatch /lustre/nyx/hades/user/parfenov/mpd_summer2019/real-flow/example-flow.sh ${FILENAME} ${OUTDIR}/${BASENAME}_flow_out.root ${RES_FIT_FILE} ${DCAFILE}
  15. done <$FILE_LIST
  16. cd $STARTING_DIR