webdataScanToSameCluster
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
源码类别:

网格计算

开发平台:

Java

  1. #!/usr/bin/env bash
  2. GRID_DIR=`dirname "$0"`
  3. GRID_DIR=`cd "$GRID_DIR"; pwd`
  4. source $GRID_DIR/../gridmix-env
  5. PROCESSES=""
  6.     
  7. for ((i=0; i < $NUM_OF_MEDIUM_JOBS_PER_CLASS; i++))
  8. do
  9.     echo $i
  10.     $GRID_MIX_HOME/webdatascan/webdata_scan.medium  2>&1 > webdata_scan.medium.$i.out &
  11.     PROCESSES="${PROCESSES} $!"
  12.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  13. done
  14.     
  15. for ((i=0; i < $NUM_OF_SMALL_JOBS_PER_CLASS; i++))
  16. do
  17.     echo $i
  18.     $GRID_MIX_HOME/webdatascan/webdata_scan.small  2>&1 > webdata_scan.small.$i.out &
  19.     PROCESSES="${PROCESSES} $!"
  20.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  21. done
  22. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  23. do
  24.     echo $i
  25.     $GRID_MIX_HOME/webdatascan/webdata_scan.large  2>&1 > webdata_scan.large.$i.out &
  26.     PROCESSES="${PROCESSES} $!"
  27.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  28. done
  29.     
  30. for APROC in ${PROCESSES}; do
  31.   wait ${APROC}
  32. done