#include <string>


Go to the source code of this file.
Classes | |
| struct | ReadError |
| Exception thrown if we encounter a read error. More... | |
| struct | NoSuchProgram |
| Exception thrown if the program isn't found. More... | |
Functions | |
| std::string | stdout_to_string (const std::string &cmd) |
| Run command cmd, capture its stdout, and return it as a std::string. | |
| std::string stdout_to_string | ( | const std::string & | cmd | ) |
Run command cmd, capture its stdout, and return it as a std::string.
Definition at line 38 of file runprocess.cc.
References C_isspace().
Referenced by get_distro(), get_loadavg(), get_ncpus(), get_svnbranch(), and get_svnrev().