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: How to find return code/exit code after sending a mail command

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Mon, 12 Oct 2020 09:32:43 +0200 (CEST)

On Sun, 11 Oct 2020, Jason Liam via curl-users wrote:

> int x = WinExec(command, SW_HIDE);
> std::cout<<"code" <<x<<std::endl;
>
> And the output on the console shows *code:33*
> *Is this the return code of the command.Can i use this to check the success
> of the sending process?*I am just learning networking so sorry if this is
> pretty basic.

That's not a networking question. That's a question about how WinExec() works
and what its return codes mean, and I don't think this is a suitable mailing
list to ask that - we can answer questions about curl itself though.

  I personally don't know but the Microsoft docs seem to say that anythin above
31 means the invokation failed.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-10-12