summaryrefslogtreecommitdiffstats
path: root/vcpe_beijing/vcpe/test.sh.bad
blob: 99bb2ab5cf5d05ff2e0dd12f79596de8792d3c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
 
#开始时间
begin=$(date +%s)
 
count=$1
rsnum=$2
cishu=$(expr $count / $rsnum)
 
for ((i=0; i<$cishu;))
do
	start_num=$(expr $i \* $rsnum + 1)
	end_num=$(expr $start_num + $rsnum - 1)
	for j in `seq $start_num $end_num`
	do
		#echo $j
		./echo.sh &
                sleep 15
i	done
	wait
	i=$(expr $i + 1)
done
 
#结束时间
end=$(date +%s)
spend=$(expr $end - $begin)
echo "花费时间为$spend秒"