Added getOutputOf functions to easily retrieve output of executed applications.

This commit is contained in:
Thulinma 2013-08-07 16:04:34 +02:00
parent ba03efc07d
commit 0daa757e92
2 changed files with 36 additions and 0 deletions

View file

@ -23,6 +23,8 @@ namespace Util {
static void runCmd(std::string & cmd);
static void setHandler();
public:
static std::string getOutputOf(char * argv[]);
static std::string getOutputOf(std::string cmd);
static pid_t Start(std::string name, std::string cmd);
static pid_t Start(std::string name, std::string cmd, std::string cmd2);
static pid_t Start(std::string name, std::string cmd, std::string cmd2, std::string cmd3);