#include <userver/engine/subprocess/process_starter.hpp>
Structure of settings for executing commands in the OS.
Definition at line 24 of file process_starter.hpp.
Public Attributes | |
std::optional< EnvironmentVariables > | env {} |
std::optional< EnvironmentVariablesUpdate > | env_update {} |
std::optional< std::string > | stdout_file {} |
std::optional< std::string > | stderr_file {} |
bool | use_path {false} |
std::optional<EnvironmentVariables> engine::subprocess::ExecOptions::env {} |
EnvironmentVariables for the environment in execution, or std::nullopt
to use GetCurrentEnvironmentVariables()
Definition at line 27 of file process_starter.hpp.
std::optional<EnvironmentVariablesUpdate> engine::subprocess::ExecOptions::env_update {} |
EnvironmentVariablesUpdate for the update environment before execution, or std::nullopt
to leave env
as is
Definition at line 30 of file process_starter.hpp.
std::optional<std::string> engine::subprocess::ExecOptions::stderr_file {} |
File path to be redirected stderr, or std::nullopt
to use the service's stderr
Definition at line 36 of file process_starter.hpp.
std::optional<std::string> engine::subprocess::ExecOptions::stdout_file {} |
File path to be redirected stdout, or std::nullopt
to use the service's stdout
Definition at line 33 of file process_starter.hpp.
bool engine::subprocess::ExecOptions::use_path {false} |
If false
, command
is treated as absolute path or a relative path. If true
, and command
does not contain /
, and PATH in environment variables, then it will be searched in the colon-separated list of directory pathnames specified in the PATH environment variable. If true
, and command
contains /
, command
is treated as absolute path or a relative path.
Definition at line 43 of file process_starter.hpp.