Files
universal-system-monitor/platform/linux/common.cpp

23 lines
538 B
C++

// #include <common.h>
// #include <iostream>
// #include <stdexcept>
// #include <stdio.h>
// #include <string>
// std::vector<std::string> exec(std::string command) {
// char buffer[128];
// std::vector<std::string> result;
// FILE* pipe = popen(command.c_str(), "r");
// try {
// while (fgets(buffer, sizeof buffer, pipe) != NULL) {
// result.push_back(buffer);
// }
// } catch (...) {
// pclose(pipe);
// throw;
// }
// pclose(pipe);
// return result;
// }