8 |
// |
// |
9 |
// 0.00 - 1.00 : working. |
// 0.00 - 1.00 : working. |
10 |
// |
// |
11 |
|
#include <sys/stat.h> |
12 |
#include <TSystem.h> |
#include <TSystem.h> |
13 |
#include <iostream> |
#include <iostream> |
14 |
#include <sys/types.h> |
#include <sys/types.h> |
57 |
continue; |
continue; |
58 |
} |
} |
59 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
60 |
|
else if (!strcmp(inps[i], "-selfile")){ |
61 |
|
selfile = (TString)inps[++i]; |
62 |
|
cout << "selfile "<<selfile.Data()<<endl; |
63 |
|
continue; |
64 |
|
} |
65 |
|
// -----------------------------------------------------// |
66 |
else if (!strcmp(inps[i], "-v")){ |
else if (!strcmp(inps[i], "-v")){ |
67 |
beverbose = true; |
beverbose = true; |
68 |
continue; |
continue; |
115 |
// redirect to dev/null the stdout |
// redirect to dev/null the stdout |
116 |
// |
// |
117 |
int nul; |
int nul; |
118 |
nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); |
nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); |
119 |
dup2(nul,1); |
dup2(nul,1); |
120 |
dup2(nul,2); |
dup2(nul,2); |
121 |
close(nul); |
close(nul); |