Posted by: Administrator
on January 25, 2006 08:47 AM
I'm new to command line executions, and I'm having a problem with wget.
I set up one cron job to get/save an xml file, and it works fine. I set up another one to get/save an image file from the same server, but it doesn't download the file properly. The problem seems to have someting to do with ampersands (&) in the file name. The file name looks like this:
"&" character a problem in wget file names?
Posted by: Administrator on January 25, 2006 08:47 AMI set up one cron job to get/save an xml file, and it works fine. I set up another one to get/save an image file from the same server, but it doesn't download the file properly. The problem seems to have someting to do with ampersands (&) in the file name. The file name looks like this:
<a href="http://pointer.site.com/chart.aspx?provider=CSV&qualifier1&qualifier2&qualifier3&qualifier4&qualifier5&qualifier6&qualifier7&qualifier8" title="site.com">http://pointer.site.com/chart.aspx?provider=CSV&q<nobr>u<wbr></nobr> alifier1&qualifier2&qualifier3&qualifier4&qualifi<nobr>e<wbr></nobr> r5&qualifier6&qualifier7&qualifier8</a site.com>
The file is recognized as a gif image and gets saved on my system as "chart.aspx?provider=CSV" but its corrupted and doesn't view properly.
I tried to work around the problem by adding "--restrict-file-names=nocontrol" to the wget command, but it doesn't change anything.
Any/all suggestions will be appreciated.
#