boost-process Questions
2
Solved
In the following code, I am trying to implement a program that runs a shell command and get the stdio, stderr and return code. I am doing it using boost process in the async mode as advised here.
...
Kenlay asked 3/10, 2018 at 9:34
2
Solved
In the following example I try to write some data to a child process, which processes the data and writes it to a file. After closing the stream the parent process waits indefinitely for the child ...
Unripe asked 15/6, 2020 at 11:8
3
Solved
I saw the following code on boost::child documentation page where they explain how to read the output of a child process.
http://www.boost.org/doc/libs/1_64_0/doc/html/boost_process/tutorial.html
T...
Wallin asked 20/7, 2017 at 6:37
1
I am trying to implement a function in C++ that runs a shell command and returns the exit code, stdout and stderr. I am using the Boost process library
std::vector<std::string> read_outline...
Araceli asked 25/9, 2018 at 10:54
2
Solved
I have the following working code using _popen, on windows,
m_pGNUPlot = _popen("/gnuplot/bin/gnuplot.exe", "w");
fprintf(m_pGNUPlot, "set term win\n");
fprintf(m_pGNUPlot, "set term pngcairo\n");...
Cinchonism asked 27/3, 2018 at 10:4
1
Solved
I have a boost::process::child. There are many examples on how to get all its stdout or stderr in a single vector, but in this method you capture all data at once. But how to retrieve lines/charact...
Extra asked 15/2, 2018 at 21:40
1
Solved
i am trying to write and read to child's stdio using boost.process using something like this:
boost::asio::io_service writeService, readService;
bp::async_pipe in{writeService};
bp::async_pipe out...
Congelation asked 8/2, 2018 at 5:11
1
Solved
i am trying to redirect both stdin and stdout of a child process.
want to fill the stdin of the process with binary data from buffers and read that,(but for now i only need to know how much is writ...
Wrongly asked 7/2, 2018 at 6:34
1
Solved
I'm trying to import boost libraries into my C++ project, and for some reason it cannot find Boost.Process, although it finds the others.
My CMakeLists.txt file:
cmake_minimum_required(VERSION 3....
Salman asked 29/8, 2017 at 5:42
1
Solved
According to the Boost documentation (section 'Why does the pipe not close?'), the following code will result in a deadlock:
#include <boost/process.hpp>
#include <iostream>
namespac...
Scribbler asked 21/8, 2017 at 11:7
2
Solved
I'm trying to call a process with a string to its stdin, with Boost-1.64.0.
The current code is :
bp::opstream inStream ;
bp::ipstream outStream;
bp::ipstream errStream;
bp::child child(
com...
Ahasuerus asked 29/5, 2017 at 9:52
9
Solved
I need to execute a program and retrieve its stdout output in c++. I'd like my code to be cross-platform too.
Having recently discovered the wonderful world of the Boost c++ libraries for all your...
Demulcent asked 5/11, 2009 at 21:15
1
© 2022 - 2024 — McMap. All rights reserved.