helpers: add "backtick" function for shell-like command

Origin commit data
------------------
Commit: f607fe5fbe
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
This commit is contained in:
Stefan Seyfried
2015-02-08 13:05:53 +01:00
committed by Jacek Jendrzej
parent 6e6432ad22
commit 8a9e640b18
2 changed files with 19 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ bool get_mem_usage(unsigned long &total, unsigned long &free);
void mySleep(int sec);
std::string find_executable(const char *name);
/* basically what "foo=`command`" does in the shell */
std::string backtick(std::string command);
bool hdd_get_standby(const char * fname);
void hdd_flush(const char * fname);