|
Last change
on this file since 75064bd was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 9 years ago
|
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
|
File size:
391 bytes
|
| Rev | Line | |
|---|
| [c5c522c] | 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.