curl-users
RE: Output to a file
From: Philippe Lhoste <PhiLho_at_GMX.net>
Date: Wed, 13 Nov 2002 15:04:43 +0000 (UTC)
Date: Wed, 13 Nov 2002 15:04:43 +0000 (UTC)
On 2002/11/13 14:44:35, "Roth, Kevin P." <KPRoth_at_MarathonOil.com> wrote:
> One way to capture standard-error in your output file is this:
>
> > curl.exe ...(your.arguments.here)... > out.txt 2>&1
>
> The key piece is "2>&1", which redirects standard error (#2) into the
> same stream as standard out (#1).
OK on the requested target, not on Dos-based OSs (Win9x).
> I think there's also a command-line flag to turn this behavior on, but
> I'm not sure what it is.
That's --stderr <file>
-- --=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=-- Philippe Lhoste (Paris -- France) Professional programmer and amateur artist http://jove.prohosting.com/~philho/ ------------------------------------------------------- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.htmlReceived on 2002-11-13