Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function execute

boost::process::v2::execute — Run a process and wait for it to complete.

Synopsis

// In header: <boost/process/v2/execute.hpp>


template<typename Executor> int execute(basic_process< Executor > proc);
template<typename Executor> 
  int execute(basic_process< Executor > proc, error_code & ec);

Description

Parameters:

proc

The process to be run.

Returns:

int The exit code of the process

Throws:

system_error An error that might have occurred during the wait.

PrevUpHomeNext