Next: ftpfilter
Up: FTP-Transfers
Previous: FTP-Transfers
#! /bin/sh
# ftptest.sh - FTP-Transfers messen
[ $# -eq 0 ] && echo "Aufruf: $0 site [wan]" && exit 1
mkdir savedir > /dev/null 2>&1
PATH=$PATH:.
maxcount=10
>ftp.$1
list="0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10"
[ "$2" = wan ] && list="0.05 0.1 0.15 0.2 0.25 0.3"
for i in $list
do
file=${i}M
count=1
while [ $count -le $maxcount ]
do
> ftp.$1.$file.$count
echo get $file
ftp -n -v << EOD | ftpfilter >> ftp.$1.$file.$count
open $1
user ipv6 geheim
cd /var/iptest
bina
get $file /dev/null
quit
EOD
count=`expr $count + 1`
done
varianz ftp.$1.$file.[0-9]* >> ftp.$1
mv ftp.$1.$file.[0-9]* savedir/
done
exit 0
Andreas Godzina
1999-04-06