20 #ifndef COIL_PROCESS_H 21 #define COIL_PROCESS_H 26 #include <coil/stringutil.h> 59 int daemon(
int nochdir,
int noclose);
68 m_fd = _popen(cmd.c_str(), mode.c_str());
79 if (feof(m_fd)) {
return true; }
84 if (m_fd == 0) {
return ""; }
85 if (feof(m_fd)) {
return ""; }
87 fgets(str, 512, m_fd);
88 std::string line(str);
94 inline FILE*
popen(
const char*
cmd,
const char* mode)
96 return _popen(cmd, mode);
104 #endif // COIL_PROCESS_H int launch_shell(std::string command)
Launching a process.
int daemon(int nochdir, int noclose)
FILE * popen(const char *cmd, const char *mode)
Popen(std::string cmd, std::string mode)
Common Object Interface Layer.