#include <config.h>#include "runprocess.h"#include "stringutils.h"#include <stdio.h>#include <string>#include "safesyswait.h"

Go to the source code of this file.
Functions | |
| string | stdout_to_string (const string &cmd) |
| Run command cmd, capture its stdout, and return it as a std::string. | |
| string stdout_to_string | ( | const 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().