subprocess icon indicating copy to clipboard operation
subprocess copied to clipboard

A C++ high level library for running shell processes

Results 7 subprocess issues
Sort by recently updated
recently updated
newest added

The library only uses std::filesystem::path from C++17. That is just used for differentiating overloads for variable/file redirection. We can port the library to comply with C++14 standard as well.

Something close to the following syntax can be supported to set bash-like options and export environment variables: { subprocess::set(pipefail); subprocess::export("var_name", "var_value"); return (subprocess::command{"random_cmd"} | subprocess::command{"another_cmd"}).run(); } // pipefail is automatically...

A subtle issue with variable_descriptor is that it attempts to read all the data at once in the end. As opposed to whenever the data is available. Proposed design: `posix_process`...

Currently, stdout/stderr can only be captured into `std::string`. This can be a problem for programs that dump a huge amount of output. There should be an alternate option to capture...

Hello, In the documentation, this sample doesn't work : ```c++ subprocess::command cmd("touch " + file_path.string()).run(); ``` ```c++ #include #include #include using namespace subprocess::literals; int main() { std::filesystem::path file_path{"/tmp/file.txt"}; // error...