cpp-subprocess icon indicating copy to clipboard operation
cpp-subprocess copied to clipboard

Subprocessing with modern C++

Results 39 cpp-subprocess issues
Sort by recently updated
recently updated
newest added

My code is set up as follows: ### main.h ``` #include "helper.h" ``` ### helper.h ``` #include "subprocess.hpp" ``` ### helper.cpp ``` #include "helper.h" ``` ## Error: --- Because of...

Consider the following code: ```c++ #include "subprocess.hpp" int main() { try { auto p = subprocess::Popen({"nonexistent-binary"}); p.wait() } catch (const std::runtime_error& e) { std::cout

I am executing a ps command and multiple lines are return. Why I am just see the first one? ... auto res = cut.communicate().first; std::cout

Is there any support to VC++? If possible in future releases this support could be included and done tests?

help wanted

In the following code: ``` int read_bytes = util::read_atmost_n( fdopen(err_rd_pipe, "r"), err_buf, SP_MAX_ERR_BUF_SIZ); close(err_rd_pipe); ``` The value returned by fdopen() is not closed. This causes memory leak. If you call...

Hi Arun, I'm trying to open a interactive shell script then send command and get response, again and again, but only firstly Popen script can get response by communicate function,...

This PR makes possible to cross-compile for Windows using the MinGW-w64 toolchain as follows: ``` cmake -B build -DSUBPROCESS_TESTS=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix cmake --build build ``` This PR supersedes https://github.com/arun11299/cpp-subprocess/pull/63.

This change is useful for downstream projects, which rely on spell-checking linters, such as [codespell](https://github.com/codespell-project/codespelll). Might be tested as follows: ``` codespell subprocess.hpp ```

The code being tested is C++ only:https://github.com/arun11299/cpp-subprocess/blob/4025693decacaceb9420efedbf4967a04cb028e7/CMakeLists.txt#L2