标签:shell
#!/bin/bash
# current time:2016-11-02 16:14:56
LANG=en_US.UTF-8
start=`date +%s`
thread=80
mkfifo ugc
exec 4<>ugc
for ((i=0;i<$thread;i++))
do
echo -ne "\n" 1>&4
done
while read line
do
{
read -u 4
{
curl -r 0-1 -o /dev/null "$line" -x 192.168.10.100:80 &>> /dev/null
echo -ne "\n" 1>&4
}&
}
done < $1
wait
echo "执行结束"
rm -rf ugc
end=`date +%s`
echo "TIME: `expr $end - $start`"
标签:shell
原文地址:http://11075514.blog.51cto.com/11065514/1869030