...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Copyright © 2006-2012 Julio M. Merino Vidal, Ilya Sokolov, Felipe Tanus, Jeff Flinn, Boris Schaeling
Copyright © 2016 Klemens D. Morgenstern
Table of Contents
Boost.Process is a library to manage system processes. It can be used to:
Here's a simple example of how to start a program with Boost.Process:
#include <boost/process.hpp
> #include <string> #include <iostream> using namespace boost::process; int main() {ipstream
pipe_stream;child
c("gcc --version",std_out
> pipe_stream); std::string line; while (pipe_stream && std::getline(pipe_stream, line) && !line.empty()) std::cerr << line << std::endl; c.wait(); }
Last revised: April 13, 2021 at 16:32:31 GMT |