Re: Issues with output
Daniel Stenberg via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
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