I am trying to download images from a manufactures site using WGET. when I run the command from the shell it works fine. But when I run it from a file I am getting a placeholder file.
Here is the command:
wget --wait=2 --output-document=1000.jpg 'http://distributorcentral.com/resources/productimage.cfm?prod=8cb7afa6-73bf-4f9f-b251-38dc652779c9&size=large'
Here is what it looks like in a file:
wget --wait=5 --output-document=1101.jpg 'http://distributorcentral.com/resources/productimage.cfm?prod=4d41b2ff-90a4-40c1-9159-2780cd642244&size=large'
wget --wait=5 --output-document=1102.jpg 'http://distributorcentral.com/resources/productimage.cfm?prod=5e88f32e-48f2-40db-bdbd-53624448392d&size=large'
wget --wait=5 --output-document=1103.jpg 'http://distributorcentral.com/resources/productimage.cfm?prod=59292a17-ae6f-49df-a028-0a9f71686f80&size=large'
I can't figure out why it isn't working as a batch shell file.
bash foo.sh? Are you executing by path e.g../foo.sh? – Sorpigal Jul 13 '11 at 11:45