37 process_execution_result
39 const std::string& stdout_output)
60 std::string msg =
"unable to start subprocess for '" + cmd_str +
"'";
65 std::ostringstream output_buf;
75 if (! cmd.eof () && errno == EAGAIN)
82 int cmd_status = cmd.
close ();
process_execution_result(void)
std::string err_msg(void) const
static process_execution_result of_error(int status, const std::string &err_msg)
static process_execution_result of_success(int exit_status, const std::string &stdout_output)
int exit_status(void) const
std::string stdout_output(void) const
int wexitstatus(int status)
bool wifexited(int status)
OCTINTERP_API process_execution_result run_command_and_return_output(const std::string &cmd_str)