If you try to download a file with wget and the download fails, then normally wget writes no output.
% wget --quiet http://www.gnu.org/nonexistent % ls -l nonexistent ls: nonexistent: No such file or directory This is good behaviour. It would be confusing to create the output file when nothing has been downloaded. But with the -O option, wget creates an output file whether successful or not: % wget -O out --quiet http://www.gnu.org/nonexistent % ls -l out -rw-rw-r-- 1 avised avised 0 2006-01-17 08:57 out I think that the behaviour with -O should be consistent with the behaviour without -O, that is, no output file should be created in the case of 404 errors or other total failures to download anything. -- Ed Avis <[EMAIL PROTECTED]> ----- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of KBC Financial Products or any affiliate thereof. This message does not create any obligation, contractual or otherwise, on the part of any such entity. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, the prices at which any KBC entity would enter into a transaction or the prices at which similar transactions may be carried on that entity's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.