|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
1 |
#ifndef _EXECMD_H_INCLUDED_
|
1 |
#ifndef _EXECMD_H_INCLUDED_
|
2 |
#define _EXECMD_H_INCLUDED_
|
2 |
#define _EXECMD_H_INCLUDED_
|
3 |
/* @(#$Id: execmd.h,v 1.3 2005-11-18 13:52:48 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: execmd.h,v 1.4 2005-11-18 15:19:14 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
6 |
#include <list>
|
6 |
#include <list>
|
7 |
|
7 |
|
8 |
/**
|
8 |
/**
|
|
... |
|
... |
26 |
int doexec(const std::string &cmd, const std::list<std::string>& args,
|
26 |
int doexec(const std::string &cmd, const std::list<std::string>& args,
|
27 |
const std::string *input = 0,
|
27 |
const std::string *input = 0,
|
28 |
std::string *output = 0);
|
28 |
std::string *output = 0);
|
29 |
/**
|
29 |
/**
|
30 |
* Add/replace environment variable before executing command. This should
|
30 |
* Add/replace environment variable before executing command. This should
|
31 |
* be called before doexec of course.
|
31 |
* be called before doexec of course (possibly multiple times for several
|
|
|
32 |
* variables).
|
32 |
* @param envassign an environment assignment string (name=value)
|
33 |
* @param envassign an environment assignment string (name=value)
|
33 |
*/
|
34 |
*/
|
34 |
void putenv(const std::string &envassign);
|
35 |
void putenv(const std::string &envassign);
|
35 |
|
36 |
|
36 |
private:
|
37 |
private:
|