|
xapian-core
1.4.29
|
run an external process and capture its output in a string. More...
#include <string>
Include dependency graph for runprocess.h:
This graph shows which files directly or indirectly include this file: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. More... | |
run an external process and capture its output in a string.
Definition in file runprocess.h.
| 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 39 of file runprocess.cc.
References C_isspace().
Referenced by get_commit_ref(), get_distro(), get_loadavg(), and get_ncpus().