You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
353 B
21 lines
353 B
#!/bin/sh
|
|
|
|
BS=$((128*1024))
|
|
COUNT=1000000
|
|
CONCURENT=2
|
|
IP="192.168.2.13"
|
|
pids=""
|
|
i=0
|
|
|
|
MESSAGE="GET / HTTP/1.1\r\nConnection: keep-alive\r\n\r\n"
|
|
|
|
while [ $i -lt ${CONCURENT} ]
|
|
do
|
|
dd if=/dev/zero bs=${BS} count=${COUNT} | nc -q 1 ${IP} 5678 >/dev/null &
|
|
#echo -en "${MESSAGE}" | nc -q 1 ${IP} 5678 &
|
|
|
|
pids="${pids} $!"
|
|
i=$((i + 1))
|
|
done
|
|
|
|
wait ${pids}
|