Apache Mesos
Namespaces | Functions | Variables
shell.hpp File Reference
#include <stdarg.h>
#include <stdio.h>
#include <sys/wait.h>
#include <ostream>
#include <string>
#include <glog/logging.h>
#include <stout/error.hpp>
#include <stout/format.hpp>
#include <stout/try.hpp>
#include <stout/os/raw/argv.hpp>

Go to the source code of this file.

Namespaces

 os
 
 os::Shell
 

Functions

template<typename... T>
Try< std::string > os::shell (const std::string &fmt, const T &...t)
 Runs a shell command with optional arguments. More...
 
int os::system (const std::string &command)
 
int os::spawn (const std::string &command, const std::vector< std::string > &arguments)
 
template<typename... T>
int os::execlp (const char *file, T...t)
 
int os::execvp (const char *file, char *const argv[])
 

Variables

constexpr const char * os::Shell::name = "sh"
 
constexpr const char * os::Shell::arg0 = "sh"
 
constexpr const char * os::Shell::arg1 = "-c"