Hi,
we have a problem downloading files using wget version 1.9 without
explicitly providing the file names. With --accept we have specified the files we want
to receive. Version 1.7 works as expected. Version 1.9 is retrieving the index-file
only.
We have searched the internet for any clues. But no luck. We want to get all files that
have the extensions zip and ini. Version 1.7 provides the index file but also the
other
files. The shell script is listed below.
Thanks for your attention
#!/bin/sh
VIRPATH=/usrhome/ftp/pub/antivir
CHKPATH=/usrhome/ftp/antivir.new
SERVERS="ftp.nai.com ftpeur.nai.com ftpde.nai.com"
URL="pub/antivirus/datfiles/4.x/"
# autoreorg:
TMPLOG=/tmp/$P.log.$$
http_proxy=x.x.x.x:x
ftp_proxy=x.x.x.x:
export ftp_proxy
export http_proxy
for server in $SERVERS ; do
echo "+++ Pruefe ftp://$server/$URL"
rm -f index.html
./wget \
--no-directories \
--no-parent \
--recursive \
--level=1 \
--no-clobber \
--cache=off \
--proxy=on \
--accept=.zip,.ini \
ftp://$server/$URL
rc=$?
[ $rc = 0 ] && break
done
Output using wget version 1.7
This is actualiy the second call. Just to make the output shorter.
All files have been downloaded with the first call.
+++ Testing ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
--12:36:47-- ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
=> `index.html'
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
0K .. @ 11.18 KB/s
12:36:50 (11.18 KB/s) - `index.html' saved [2748]
File `dat-4301.zip' already there, will not retrieve.
File `delta.ini' already there, will not retrieve.
File `update.ini' already there, will not retrieve.
FINISHED --12:36:50--
Downloaded: 2,748 bytes in 1 files
Output using wget version 1.9. The script ist the same.
+++ Testing ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
--12:51:35-- ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
=> `index.html'
Resolving wgetproxy... x.x.x.x
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 2,748 12.20K/s
12:51:37 (12.20 KB/s) - `index.html' saved [2748]
FINISHED --12:51:37--
Downloaded: 2,748 bytes in 1 files
Mit freundlichen Grüßen / Best regards
____________________________
Thomas Wagner
KORDOBA GmbH & Co. KG
Tel.: +49 69 797 - 6539
Fax: +49 69 797 - 6597
[EMAIL PROTECTED]
http://www.kordoba.de
____________________________