5 #include <Poco/TemporaryFile.h>
17 const std::string tmpFile = Poco::TemporaryFile::tempName(
"");
22 FILE* err = freopen (tmpFile.c_str(),
"w", stderr);
24 f=popen(
cmd.c_str(),
"r");
27 while(fgets(buff,
sizeof(buff), f))
51 err = fopen(tmpFile.c_str(),
"r");
54 memset(buff, 0,
sizeof(buff));
55 while(fgets(buff,
sizeof(buff), err))
63 if (
remove(tmpFile.c_str())!=0)
72 const_cast<ShellExec&
>(shellExec).exec(os, os);
78 std::stringstream outMsg;
80 if (!shellExec.isError())