subprocess::Popen::Popen

Constructors

Synopses

Declared in <util/subprocess.h>

Launches a child process from a command given as an initializer list, plus options.

template<typename... Args>
Popen(
    std::initializer_list<char const*> cmd_args,
    Args&&... args);
» more...

Launches a child process from a command given as a vector of strings, plus options.

template<typename... Args>
Popen(
    std::vector<std::string> vargs_,
    Args&&... args);
» more...

Parameters

NameDescription
cmd_argsCommand and its arguments, the first element being the program to run.
argsOption objects (such as input, output, error, or executable) configuring the launch.
vargs_Command and its arguments, the first element being the program to run.