12 if (!pCommandResultData.isNull())
16 Poco::Process::Env
env;
18 for (
size_t i=0;i<refEnv.size();++i)
19 env[refEnv[i].first] = refEnv[i].second;
27 unsigned int exitStatus = starterExecutor.wait(allowedTime);
29 pCommandResultData->setExitStatus(exitStatus);
30 pCommandResultData->setProcessId(pid);
31 pCommandResultData->setOutStream(starterExecutor.getOutStream());
32 pCommandResultData->setErrStream(starterExecutor.getErrStream());
33 statusExecution = starterExecutor.getStatusExecution();
35 catch(Poco::Exception& e)
37 pCommandResultData->setIsError(
true);
38 pCommandResultData->getErrStream() <<
" " << e.displayText();
40 catch(std::exception& e)
42 pCommandResultData->setIsError(
true);
43 pCommandResultData->getErrStream() <<
" " << e.what();
46 return pCommandResultData;