Where is Boost.Process?

I need to execute a program and get its stdout output in C ++. I would like my code to be cross-platform too.

Having recently opened the wonderful world of Boost C ++ libraries for all your cross-platform needs, I decided that I would just go to boost.org and read out the Boost.Process documentation. To my great surprise, he was not there! Then I proceeded to find out what name Boost gave its cross-platform library the ability to start external processes, but so far I have not been able to find it.

A Google search led me to Julio M. Merino Vidal Boost.Process , which seems to be the unofficial Boost library I was looking for. Oddly enough, I can not find the download link on this website. It also seems that there have been no recent changes to the project.

Finally, I was able to find the download link for Vidal Boost.Process on an external site

+54
c ++ boost cross-platform platform-independent boost-process
Nov 05 '09 at 21:15
source share
9 answers

Julio M. Merino Vidal, who, I believe, the author of the original, wrote to this post for 2007 that he did not have time to complete it.

The development was adopted by Boris Shallin. This is the version you found at http://www.highscore.de/boost/process/ . According to this report, he is still actively developing it.

There is another version, Ilya Sokolov .

For your other question:

Could you suggest other cross-platform libraries for managing simple startup and interaction with external processes?

you can see this wiki page that lists alternatives.

Depending on your needs, popen () can also do the job.

+29
Nov 05 '09 at 22:12
source share

Boost.Process was accepted for inclusion in Boost on November 9, 2016 ; and was included in 1.64 , released on April 19, 2017. Boost.Process is now the official Boost library!

Documentation is available here: http://www.boost.org/doc/libs/1_64_0/doc/html/process.html




For the record, the sources that were revised from October 27, 2016 to November 5, 2016 are available on GitHub:

download: https://github.com/klemens-morgenstern/boost-process

manual: http://klemens-morgenstern.imtqy.com/process/index.html




You can find several older versions of this library on the Internet. They are all more or less incompatible:

  • Version 0.5 (latest, December 3, 2012)

download: http://www.highscore.de/boost/process0.5/process.zip

manual: http://www.highscore.de/boost/process0.5/index.html

  • GSOC2010 Version

download: http://www.highscore.de/boost/gsoc2010/process.zip

manual: http://www.highscore.de/boost/gsoc2010/

  • Version 0.31

download: http://www.highscore.de/boost/process.zip

manual1: http://www.highscore.de/boost/process/

manual2: http://www.highscore.de/cpp/process/

I think this is the same as in http://svn.boost.org/svn/boost/sandbox/process/boost/

  • IS Version 0.1-0.4

download: https://github.com/boost-vault/Process

  • Version 0?

download: http://www.netbsd.org/~jmmv/process.zip

manual: http://www.netbsd.org/~jmmv/process/

There is another version that looks like branches: https://github.com/JeffFlinn/boost-process and https://github.com/boost-vault/Process .

For a partial history of the project, see http://www.highscore.de/cpp/process/#introduction

+56
Sep 08
source share

Boost Process was one of the Google Summer of Code projects this year. GSOC 2010 Boost Process website http://www.highscore.de/boost/gsoc2010/ .

The library is still unofficial, but its developers believe that it is stable enough to request a formal review .

+8
Nov 26 2018-10-11T00:
source share

As of August 18, 2012, a newer version of Boost.Process (v0.5) was released at http://www.highscore.de/boost/process0.5/

hope this helps Philipp

+8
Aug 27 2018-12-12T00:
source share

Another option might be the POCO modular design, see Process::launch() , which has an overload that accepts Pipes for entry, exit, and error.

+4
Nov 05 '09 at 23:01
source share

It seems that Boost.Process is in the sandbox area , which suggests that it was proposed for inclusion and probably still remains working, but is not considered stable, documented and / or useful to be included in the main release of acceleration.

+3
Nov 05 '09 at 21:53
source share

In July 2015, it seems Boost.Process was scheduled to re-officially see Boost.

+2
Jul 07 '15 at 19:40
source share

Parts of Boost.Process are available in several standalone libraries in Boost now: Boost.Interprocess, Program Options, etc.

+1
Nov 05 '09 at 21:52
source share

The new Boost Process is now in beta and will be available in Boost 1.64.0.

http://www.boost.org/doc/libs/1_64_0_b2/doc/html/process.html

+1
Apr 19 '17 at 13:07 on
source share