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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template 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);

Description

Parameters:

proc

The process to be run.

Template Parameters:

Executor

The asio executor of the process handle

Returns:

int The exit code of the process

Throws:

system_error An error that might have occurred during the wait.

PrevUpHomeNext