See here: https://raymii.org/s/articles/Execute_a_command_and_get_both_output_and_exit_code.html
dmikushin / cpp-command-output Goto Github PK
View Code? Open in Web Editor NEWThis project forked from raymiiorg/cpp-command-output
Execute commands and get exit status and stdout
Home Page: http://raymii.org/s/articles/Execute_a_command_and_get_both_output_and_exit_code.html
License: GNU General Public License v3.0