subprocess  0.4.0
Modern subprocess library for c++
Public Attributes | List of all members
subprocess::RunOptions Struct Reference

#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
 

Member Data Documentation

◆ cerr

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.

◆ check

bool subprocess::RunOptions::check = false

Set to true for subprocess::run() to throw exception. Ignored when using Popen directly.

◆ cin

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.

◆ cout

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.

◆ cwd

std::string subprocess::RunOptions::cwd

current working directory for new process to use

◆ env

EnvMap subprocess::RunOptions::env

If empty inherits from current process

◆ new_process_group

bool subprocess::RunOptions::new_process_group = false

Set to true to run as new process group

◆ timeout

double subprocess::RunOptions::timeout = -1

Timeout in seconds. Raise TimeoutExpired.

Only available if you use subprocess_run


The documentation for this struct was generated from the following file: