cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Creating a continuous log file.

From: Brian Dessent <brian_at_dessent.net>
Date: Thu, 29 Nov 2007 05:40:20 -0800

Gerard Seibert wrote:

> I am using curl 7.16.3 on a FreeBSD-6.2 system. Actually, this is my first
> time using curl, having been using 'wget' for several years.
>
> My question has probably been asked before; however, I Googled and could not
> find the answer.
>
> I have a script I created that downloads several files in one session. All the
> files are not located on one URL. I want to create a log file that contains
> the information from all of the downloads in one log. Unless I am doing
> something wrong, it appears that curl rewrites the log file on each invocation
> of itself.

Can you show us what exactly you're doing? Are you redirecting stderr?
If that's the case then curl has no control over that, it depends on how
you use the shell, e.g.:

curl -v -LO http://url1 -LO http://url2 2>>logfile

Brian
Received on 2007-11-29