1#/bin/SH2 3task_list=$14Len= 'WC-L $TASK _list |awk '{print $}'`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'Ten sed-N"'$ (((len/5)*3+1))','$ (((len/5)*4))'P'$TASK _list > $TASK _list'Task_list4' One sed-N"'$ (((len/5)*4+1))','$ ((len))'P'$TASK _list > $TASK _list'Task_list5' A - #noExce () { -Nohup./test $TASK _list'Task_list1' 1> $TASK _list'log.task_list_1' 2>&1& theNohup./test $TASK _list'Task_list2' 1> $TASK _list'log.task_list_2' 2>&1& -Nohup./test $TASK _list'Task_list3' 1> $TASK _list'Log.task_list_3' 2>&1& -Nohup./test $TASK _list'Task_list4' 1> $TASK _list'Log.task_list_4' 2>&1& -Nohup./test $TASK _list'Task_list5' 1> $TASK _list'log.task_list_5' 2>&1& +#}
Use shell scripts to slice task_list and execute separate scripts