curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Issues with output

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 12 Jun 2023 23:12:02 +0200 (CEST)

On Mon, 12 Jun 2023, TD via curl-users wrote:

> Using Curl 8.10 compiled with openSSL on Ubuntu 20.04.

You probably mean 8.1.0

> I know curl has threading options

You probably mean the parallel option. curl does many simultaneous transfers
in the same thread.

> If I use GNU curl, the output from the -w gets added to the output from the
> curl command and it all ends up in one file.

Because you send them both to stdout?

> cat $ListOfConfigFilesToPass |parallel -P3000 curl -s -w "$listOfOptions"
> --doh-url $DOH_URL -A $AGENT_STRING --connect-timeout 15 --max-time 60 -k -L
> --config {} >>$outputFileForStats 2>/dev/null It seems like there should be
> 3 distinct outputs from this:---stdout (the output of -w) ---stderr (blank
> because the -s option should suppress it, and anything else is being sent to
> /dev/null)---the output file specified in the config file.
>
> Am I interpreting this correctly?

Not exactly. The -w output goes to stdout and since you don't use --output,
the normal data is also output to stdout.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-06-12