gcc484ntopperl-5.22
Last change
on this file since 0105685 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
File size:
391 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | SIZE=32; |
---|
3 | echo "Started $1 at `date`:" | tee -a $1.log |
---|
4 | while [ $SIZE -le 65536 ]; do |
---|
5 | RSIZE=$SIZE; |
---|
6 | if [ $RSIZE -gt 65507 ]; then |
---|
7 | RSIZE=65507 |
---|
8 | fi |
---|
9 | |
---|
10 | ping -c 10 $1 $2 -s $RSIZE > /tmp/$$; |
---|
11 | LOSS=`grep loss /tmp/$$ |cut -d, -f3` |
---|
12 | AVG=`grep avg /tmp/$$ |cut -d'/' -f5` |
---|
13 | echo -e "Size $RSIZE $LOSS, avg=$AVG" | tee -a $1.log; |
---|
14 | |
---|
15 | (( SIZE=SIZE*2 )) |
---|
16 | done |
---|
17 | |
---|
18 | rm /tmp/$$ |
---|
19 | wijziging in head |
---|
Note: See
TracBrowser
for help on using the repository browser.