Hamish wrote:
> > when using wget with the -r and -O options you get a warning message:
> > """
> > WARNING: combining -O with -r or -p will mean that all downloaded
> > content will be placed in the single file you specified.
> > """
> > 
> > (in this case I used -O excactly to get that behaviour
> > [to force an overwrite])
 
Micah:
> In other words, you will get every single downloaded file placed in
> this one file. You sure that's what you wanted?

Yes, I'm just downloading a single file. I'm not interested in the
recursive nature of -r, I'm only interested in the overwriting nature
of it. I want to download the latest version of the file in place and
have it immediately go live.

> It's not what most people expect. We're not turning this off upstream
> (in fact, we may revisit the idea of disallowing that combination of
> options).

... so what I'm really doing is taking advantage of a side effect of the
-r option to allow a silent overwrite due to a (perceived?) deficiency
elsewhere.  But now that you mention it I wonder if it was disabled how
you would be able to send the output directly to /dev/null for testing?
Pipe via stdout? Does "-O -" work with -r? </wonder>


So I guess I'd use ` --output-document=- > /path/to/my/file ` instead?
Is there a better way to avoid the filename.1?


thanks,
Hamish



      



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to