curl-users
RE: curl.exe: append logs on the output-file?
Date: Thu, 28 Mar 2002 06:29:22 -0500
The problem here is that --output is what's not appending... So this change isn't going to fix Christoph's problem (since he's using --output to stick results into a file).
What you really need is this:
curl.exe URL 2>&1 >> logfile.txt
or, if the 2>&1 doesn't work for some reason:
curl.exe --stderr - URL >> logfile.txt
leave off the --output altogether...
If, on the other hand, you actually want separate message and error files, then try something like this:
curl.exe URL >> logfile.txt 2>> errors.txt
--Kevin
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Thu 28-Mar-02 05:23 AM
Thinking about it, I figure --stderr should actually always append. Anyone
with a different opinion? Please don't tell me we need both. ;-)
src/main.c line 1096 should be modified so that the fopen() uses an "a"
instead of "w" for this to work...
Received on 2002-03-28