run_test.sh 477 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. export MAIN_DIR=/scratch1/parfenov/Soft/TestNodes/sge_ncx
  3. export MAIN_SCRIPT=${MAIN_DIR}/start_template.sh
  4. export FILELIST=${MAIN_DIR}/nodes.list
  5. export NODE=`sed "${TASK_ID}q;d" $FILELIST`
  6. export TMP_DIR=${MAIN_DIR}/TMP
  7. mkdir -p $TMP
  8. while read line
  9. do
  10. echo "$line"
  11. export TMP=${TMP_DIR}/TMP_${line}
  12. mkdir -p $TMP
  13. sed\
  14. -e 's!@jobnode@!'$line'!g'\
  15. $MAIN_SCRIPT > ${TMP}/start.sh
  16. qsub -t 1-1 ${TMP}/start.sh
  17. sleep 10s
  18. done < $FILELIST