2003-07-20 19:29:38 +00:00
|
|
|
#ifndef __EXEC_H
|
|
|
|
#define __EXEC_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
2003-08-15 12:32:37 +00:00
|
|
|
#include "util.hh"
|
|
|
|
|
2003-07-20 19:29:38 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
/* A Unix environment is a mapping from strings to strings. */
|
|
|
|
typedef map<string, string> Environment;
|
|
|
|
|
|
|
|
|
|
|
|
/* Run a program. */
|
2003-08-15 12:32:37 +00:00
|
|
|
void runProgram(const string & program,
|
2003-10-22 11:04:57 +00:00
|
|
|
const Strings & args, const Environment & env,
|
|
|
|
const string & logFileName);
|
2003-07-20 19:29:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* !__EXEC_H */
|