PStreams
lastmod 2026-11-10created 2020-07-152 edits
PStreams is a header-only library for POSIX environments that runs child processes and lets you handle their standard input and output like C++ iostreams. With the ipstream, opstream, and pstream classes you can read the output of external commands or write to their input, which is safer and more concise than calling popen directly. It serves a similar purpose to Boost.Process and procxx.
POSIX Process Control in C++