FairMQ  1.4.33
C++ Message Queuing Library and Framework
Process.h
1 /********************************************************************************
2  * Copyright (C) 2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef FAIR_MQ_TOOLS_PROCESS_H
10 #define FAIR_MQ_TOOLS_PROCESS_H
11 
12 #include <string>
13 
14 namespace fair::mq::tools
15 {
16 
20 struct execute_result
21 {
22  std::string console_out;
23  int exit_code;
24 };
25 
35 execute_result execute(const std::string& cmd,
36  const std::string& prefix = "",
37  const std::string& input = "",
38  int sig = -1);
39 
40 } // namespace fair::mq::tools
41 
42 #endif /* FAIR_MQ_TOOLS_PROCESS_H */

privacy