I am posting this to bug-wget because sunsite.dk appears to have
blacklisted me for sending a message without subject line or body to
wget-subscribe AT sunsite DOT dk
I have a shell script which uses wget to fetch pages listed in a
google search. It works as follows.
The user does a search using google and saves the result as a file
called 'test.search'. My shell script looks like this:
DOMS1=www.google.com,images.google.com,froogle.google.com,groups.google.com,news.google.com,froogle.google.com
DOMS2=www.google.co.uk,images.google.co.uk,froogle.google.co.uk,groups.google.co.uk,news.google.co.uk,froogle.google.co.uk
DOMS=${DOMS1},${DOMS2}
UA="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
wget -S -pxk -w 2 -b -U "${UA}" --exclude-domains=$DOMS -F -i test.search
I have included the exclude domains in the script because I had no
success getting them read from $HOME/.wgetrc but that may be another
problem
Now some odd things happen when I run this script, all of which seem
to be related to domains in the supposedly excluded list. E.g. here is
a directory listing after running my script
nemesis:~/wget-test ed$ ls
64.233.183.104/ test.search
digg.com/ wget-log
froogle.google.co.uk/ wget.sh
groups.google.co.uk/ wget.sh~
images.google.co.uk/ work.alexyoung.org/
mac.softpedia.com/ www.google.co.uk/
news.google.co.uk/ www.greenapplegames.com/
osx.iusethis.com/ www.macupdate.com/
platypus.darwinports.com/ www.pure-mac.com/
static.iusethis.com/ www.versiontracker.com/
Note all the google domains I was so careful to exclude. Am I doing
anything wrong?
Ed