Quote:
Originally Posted by guthrie
How can I tell wget to fail silently if a file is not there? OR perhaps, since the server is detecting this and giving the error message, it is hopeless?
|
Since this seems to be the server's doing, I would think what you have requested is hopeless. But I would think you could write a trivial script that downloads the file and uses the
file command to determine if it is a
gif and deletes it if it isn't. You could even automate the files you attempt to download to save yourself some tedium.
EDIT: On additional reflection, you might be able to use
wget's --header option so your request looks like it's the result of the image being part of a web page. But unless you are fairly familiar with these internal workings (I am not), it is probably easier to impliment my previous suggestion.