subprocess
0.4.0
Modern subprocess library for c++
|
#include <ProcessBuilder.hpp>
Public Attributes | |
bool | check = false |
PipeVar | cin = PipeOption::inherit |
PipeVar | cout = PipeOption::inherit |
PipeVar | cerr = PipeOption::inherit |
bool | new_process_group = false |
std::string | cwd |
EnvMap | env |
double | timeout = -1 |
PipeVar subprocess::RunOptions::cerr = PipeOption::inherit |
Option for cout, or handle to use.
if a pipe handle is used it will be made inheritable automatically when process is created and closed on the parents end.
bool subprocess::RunOptions::check = false |
Set to true for subprocess::run() to throw exception. Ignored when using Popen directly.
PipeVar subprocess::RunOptions::cin = PipeOption::inherit |
Option for cin, data to pipe to cin. or created handle to use.
if a pipe handle is used it will be made inheritable automatically when process is created and closed on the parents end.
PipeVar subprocess::RunOptions::cout = PipeOption::inherit |
Option for cout, or handle to use.
if a pipe handle is used it will be made inheritable automatically when process is created and closed on the parents end.
std::string subprocess::RunOptions::cwd |
current working directory for new process to use
EnvMap subprocess::RunOptions::env |
If empty inherits from current process
bool subprocess::RunOptions::new_process_group = false |
Set to true to run as new process group
double subprocess::RunOptions::timeout = -1 |
Timeout in seconds. Raise TimeoutExpired.
Only available if you use subprocess_run