We have a vendor that sends us xml feeds of new items with the appropriate path and image name. I created script that will strip the web address path for the image, but if I try to obtain these with wget I get a protocol error. I tried using wget -i list.txt. If I use other tools similar I do not have an issue. What would be causing the issue and what is best suggested?
|
|
|||
|
i think this will work
or if you have list then you can use
|
|||||||||||||
|
|
Without seeing a sample of the input and at least the core of your script, I can only speculate that the URLs are being interfered with by malevolent space yetis. They are notorious for this irresponsible behaviour - your only hope is to call Area 51 tech support. Or maybe provide sample and script here. A crazy idea, but it might help. Anonymise or obfuscate them if necessary, but without messing up the structure of the XML file. I'm going to guess that you're using a simple regexp and point out that as a general rule, "parsing" XML with regexps is not a good idea - it's fragile and easily confused by valid but unexpected input...use an xml parsing library or function or even a tool like xml2 to extract the URLs from the XML files. Note also that, as hinted by Deer Hunter above, if the URLs contain any spaces or punctuation characters with special meaning to the shell (e.g |
|||
|
|
|
after much review we found the network was an issue. The wget script would work for other sites and the links downloaded with window based tools such as jdownloader. For some reason the Linux based side would not access the NT web server from the vendor. We have installed winbind but the an examination of out network is in order. |
|||
|
|

wgetinvocation? – Deer Hunter Jan 4 at 18:24