1 #/bin/sh 2 3 TASK_LIST=$1 4 len=`wc -l $TASK_LIST | awk '{print $1}'` 5 6 #noExce(){ 7 sed -n '1,'$(( (len/5) ))'p' $TASK_LIST > $TASK_LIST'task_list1' 8 sed -n ''$(( (len/5)*1+1 ))','$(( (len/5)*2 ))'p' $TASK_LIST > $TASK_LIST'task_list2' 9 sed -n ''$(( (len/5)*2+1 ))','$(( (len/5)*3 ))'p' $TASK_LIST > $TASK_LIST'task_list3' 10 sed -n ''$(( (len/5)*3+1 ))','$(( (len/5)*4 ))'p' $TASK_LIST > $TASK_LIST'task_list4' 11 sed -n ''$(( (len/5)*4+1 ))','$(( len ))'p' $TASK_LIST > $TASK_LIST'task_list5' 12 13 #noExce(){ 14 nohup ./test $TASK_LIST'task_list1' 1>$TASK_LIST'log.task_list_1' 2>&1 & 15 nohup ./test $TASK_LIST'task_list2' 1>$TASK_LIST'log.task_list_2' 2>&1 & 16 nohup ./test $TASK_LIST'task_list3' 1>$TASK_LIST'log.task_list_3' 2>&1 & 17 nohup ./test $TASK_LIST'task_list4' 1>$TASK_LIST'log.task_list_4' 2>&1 & 18 nohup ./test $TASK_LIST'task_list5' 1>$TASK_LIST'log.task_list_5' 2>&1 & 19 #}