9#include "daq/slc/system/CommandLine.h"
14int CommandLine::run_shell(
const string& cmdline,
string& response)
16 FILE* fp = ::popen(cmdline.c_str(),
"r");
18 fprintf(stderr,
"run_shell: Error to run command : %s\n", cmdline.c_str());
23 buf[strlen(buf) - 1] =
'\0';
24 response = std::string(buf);
Abstract base class for different kinds of events.