Switch to unified view

a/src/utils/execmd.cpp b/src/utils/execmd.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: execmd.cpp,v 1.5 2005-02-10 15:21:12 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: execmd.cpp,v 1.6 2005-03-17 14:02:05 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
#ifndef TEST_EXECMD
4
#ifndef TEST_EXECMD
5
#include <unistd.h>
5
#include <unistd.h>
6
#include <sys/types.h>
6
#include <sys/types.h>
7
#include <sys/wait.h>
7
#include <sys/wait.h>
...
...
20
20
21
using namespace std;
21
using namespace std;
22
#define MAX(A,B) (A>B?A:B)
22
#define MAX(A,B) (A>B?A:B)
23
23
24
int
24
int
25
ExecCmd::doexec(const string &cmd, const list<string> args,
25
ExecCmd::doexec(const string &cmd, const list<string>& args,
26
        const string *input, string *output)
26
        const string *input, string *output)
27
{
27
{
28
    {
28
    {
29
    string command = cmd + " ";
29
    string command = cmd + " ";
30
    for (list<string>::const_iterator it = args.begin();it != args.end();
30
    for (list<string>::const_iterator it = args.begin();it != args.end();