tomwishyet wrote: > Ladies and Gentlemen, > > I like the wget program because it does a lot of good thinks, but I > am not able to solve a simple problem. > > If I write a file like this (named downld.sh) > > wget -O page1.html http://www.site.com/cp?s=^thing > > all is ok and wget works fine, but if I write > > wget -O page2.html http://www.site.com/cp?s=^thing&c=1 > > wget downloads the same content as previous. With other words > wget ignores the additional &c=1 part of the address. > I've also tried > > wget -O page2.html http://www.site.com/cp?s=^thing&c=1 > > but nothing changed. I am too dude to solve such an easy problem, > but please be so kind and tell me what am I doing wrong. > Many thanks in advance!
Your shell interprets the & character specially. Please be sure to surround the URL with double-quotes, so that the shell will pass the whole URL to wget. -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. Maintainer of GNU Wget and GNU Teseq http://micah.cowan.name/
