10#ifndef OKSSYSTEM_EXECUTABLE
11#define OKSSYSTEM_EXECUTABLE
35 void exec(
char** argv)
const ;
36 void exec(
char**
const argv,
char**
const env)
const ;
39 static void copy_fd(
int fd, std::ostream &target) ;
41 static std::string
okssystem(
const std::string &command);
Wrapper for executable file manipulation.
Process start_and_forget(const param_collection ¶ms) const
start the executable in another process; do not wait for termination of child
Executable(const OksSystem::File &file)
std::string pipe_in(const param_collection ¶ms) const
run the executable and pipe results back
Process pipe_out(const param_collection ¶ms, const File &input_file, const File &output_file, const File &error_file, mode_t perm) const
static const char *const SHELL_COMMAND
command to execute in a shell
Process start(const param_collection ¶ms) const
start the executable in another process
static std::string okssystem(const std::string &command)
execute a command in a shell
static const char *const SHELL_COMMAND_PARAM
parameter to execute in a shell
std::string to_string(const param_collection ¶ms) const
converts executable name and a parameter sequence into a string
void exec() const
run the executable
static void copy_fd(int fd, std::ostream &target)
copies the content of a file descriptor into a STL stream
std::vector< std::string > param_collection
std::map< std::string, std::string > env_collection
Wrapper for file operations.
Wrapper for process manipulation.