|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
|
... |
|
... |
175 |
* @param exe on return, executable path name if found
|
175 |
* @param exe on return, executable path name if found
|
176 |
* @param path exec seach path to use instead of getenv(PATH)
|
176 |
* @param path exec seach path to use instead of getenv(PATH)
|
177 |
* @return true if found
|
177 |
* @return true if found
|
178 |
*/
|
178 |
*/
|
179 |
static bool which(const string& cmd, string& exe, const char* path = 0);
|
179 |
static bool which(const string& cmd, string& exe, const char* path = 0);
|
|
|
180 |
|
|
|
181 |
/**
|
|
|
182 |
* Execute command and return stdout output in a string
|
|
|
183 |
* @param cmd input: command and args
|
|
|
184 |
* @param out output: what the command printed
|
|
|
185 |
* @return true if exec status was 0
|
|
|
186 |
*/
|
|
|
187 |
static bool backtick(const std::vector<std::string> cmd, std::string& out);
|
180 |
|
188 |
|
181 |
friend class ExecCmdRsrc;
|
189 |
friend class ExecCmdRsrc;
|
182 |
private:
|
190 |
private:
|
183 |
static bool o_useVfork;
|
191 |
static bool o_useVfork;
|
184 |
|
192 |
|