1234567891011121314151617181920212223 |
- #!/bin/bash
- INPUT_LIST_DIR=$1
- OUTPUT_DIR=/mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/hpc_scripts/OUT/`date '+%Y%m%d_%H%M%S'`
- QUEUE=medium
- mkdir -p $OUTPUT_DIR/log
- mkdir -p $OUTPUT_DIR/root
- mkdir -p $OUTPUT_DIR/sge_error
- mkdir -p $OUTPUT_DIR/sge_output
- ls -1 $INPUT_LIST_DIR/* | while read line
- do
- OUTPUT_ROOT=$OUTPUT_DIR/root/$RUNID/`basename ${line%.*t}`.root
- OUTPUT_LOG=$OUTPUT_DIR/log/$RUNID/`basename ${line%.*t}`.log
- OUTPUT_O_SGE=$OUTPUT_DIR/sge_output/$RUNID/`basename ${line%.*t}`.out
- OUTPUT_E_SGE=$OUTPUT_DIR/sge_error/$RUNID/`basename ${line%.*t}`.err
- qsub -q $QUEUE -o $OUTPUT_O_SGE -e $OUTPUT_E_SGE run.sh -F "$line $OUTPUT_ROOT $INPUT_RECENTERING $OUTPUT_LOG"
- done
|