strusBase  0.17
exec.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
9 #ifndef _STRUS_BASE_EXEC_HPP_INCLUDED
10 #define _STRUS_BASE_EXEC_HPP_INCLUDED
11 #include <string>
12 #include <map>
13 
14 namespace strus
15 {
16 
22 int execv_tostring( const char* filename, const char* const argv[], std::string& output);
23 
30 int execve_tostring( const char* filename, const char* const argv[], const std::map<std::string,std::string>& env, std::string& output);
31 
32 }
33 #endif
34 
35 
int execv_tostring(const char *filename, const char *const argv[], std::string &output)
Execution of a command appending the output to a string.
int execve_tostring(const char *filename, const char *const argv[], const std::map< std::string, std::string > &env, std::string &output)
Execution of a command with some environment variables set, appending the output to a string...