...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
Note | |
---|---|
Process V2 is available as experimental |
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: August 04, 2022 at 02:55:29 GMT |