Web Hosting Talk







View Full Version : please help - hot to wget (ssh) with & in url


Nullified
02-18-2005, 07:49 PM
I need to wget some files from a server but there is an & in the url. how do I do this with ssh wget?

namelayer
02-18-2005, 07:56 PM
try
wget -P http://www.site.com/blah.php&=blah
---edit----
Scratch that...that wasnt it.

propcgamer
02-19-2005, 02:14 AM
Put quotes around the url
like
wget "http://www.url.com/blah&.zip"

dollar
02-19-2005, 08:06 AM
If you have lynx installed it can work as well.

lynx "http://www.url.com/blah&.zip"

Nullified
02-19-2005, 10:34 AM
I got around it before your replies, but it didn't work. I tried wgeting the entire directory, but the one file I wanted still didn't come. Thanks anyways.

urbanservers
02-19-2005, 01:29 PM
It possibly need to escape the &, else using ""'s around the target url works 90% of the time, who uses an & in a file name?

Nullified
02-19-2005, 02:17 PM
the & was in a directory alogn with commas and spaces, lol. anyways I just did an -rnp on the directory before the &.