38 const std::string& stdout_output)
57 std::string msg =
"unable to start subprocess for '" + cmd_str +
"'";
62 std::ostringstream output_buf;
72 if (! cmd.eof () && errno == EAGAIN)
79 int cmd_status = cmd.
close ();
int exit_status(void) const
std::string stdout_output(void) const
static OCTINTERP_API process_execution_result of_success(int exit_status, const std::string &stdout_output)
static OCTINTERP_API process_execution_result of_error(int status, const std::string &err_msg)
std::string err_msg(void) const
process_execution_result(void)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
process_execution_result run_command_and_return_output(const std::string &cmd_str)
bool wifexited(int status)
int wexitstatus(int status)