I'm having trouble getting the flags right in mirror mode.
And the logging doesn't seem to be happening.
Here is the short script I'm running as root:
All the extra echos etc are to see how the shell sees what its being
told.
#!/bin/sh
WGET="/usr/local/bin/wget"
G_up_FLAGS="--mirror -nH --cut-dirs=3 -X \"alpha,alphaev6\""
G_up_SITE_1="ftp.redhat.com:/redhat/updates/7.0"
G_up_LOG_FILE="-a /var/log/wget-7.0up.log"
cd /mnt/hdc6/7.0up
ls
echo $WGET
echo $G_up_FLAGS
echo $G_up_SITE_1
echo $G_up_LOG_FILE
$WGET $G_up_FLAGS $G_up_SITE_1 $Gup_LOG_FILE
# wget-7.0up
SRPMS alpha i386 i586 i686 images noarch
/usr/local/bin/wget
--mirror -nH --cut-dirs=3 -X "alpha,alphaev6"
ftp.redhat.com:/redhat/updates/7.0
-a /var/log/wget-7.0up.log
The first line after the shell command above is the output of `ls' in
local directory. The flags concerning cutting directories are working
as expected. Since files are being downloaded into `alpha'
The remote directory looks like:
ftp.redhat.com:/pub/redhat/updates/7.0
SRPMS alpha alphaev6 i386 i586 i686 images noarch
I don't want to download the alpha or alphaev6 files.
The flags above are currently escaped and double quoted as shown but I have tried
them in three other ways so in total:
-X \"alpha,alphaev6\"
-X "alpha,alphaev6"
-X alpha,alphaev6
-X /alpha,/alphaev6
Those four have been tried with all other factors the same.
The script continues to allow download to `alpha' directory with all
four formats. What do I need to do here?
Also does anyone see anything wrong with the logging flag. It isn't
happening.