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 ();
81 if (sys::wifexited (cmd_status))
82 cmd_status = sys::wexitstatus (cmd_status);
89OCTAVE_END_NAMESPACE(octave)
static process_execution_result of_success(int exit_status, const std::string &stdout_output)
static process_execution_result of_error(int status, const std::string &err_msg)
std::string stdout_output() const
process_execution_result()
std::string err_msg() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
process_execution_result run_command_and_return_output(const std::string &cmd_str)