20 #include "commandjob.h" 24 CommandJob::CommandJob(ExecutablePtr executable,
25 const std::string &command): JobAbstract(executable)
30 CommandJob::~CommandJob()
34 bool CommandJob::setWorkingDirectory(
const std::string &folder)
36 m_workingDirectory = folder;
40 bool CommandJob::start()
42 return m_executable->execute(m_command,
51 std::string CommandJob::toString()
const 53 return logging::StringBuilder() <<
"SoftwareContainer job. command: " 54 << m_command <<
" stdin:" << m_stdin[0]
55 <<
" stdout:" << m_stdout[1];
Developers guide to adding a config item: