/[PAMELA software]/eventviewer/flight/src/FEventViewer.cpp
ViewVC logotype

Diff of /eventviewer/flight/src/FEventViewer.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Tue May 11 09:13:50 2010 UTC revision 1.6 by mocchiut, Thu Jan 16 15:52:36 2014 UTC
# Line 8  Line 8 
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>
# Line 56  int main(int numinp, char *inps[]){ Line 57  int main(int numinp, char *inps[]){
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;
# Line 108  int main(int numinp, char *inps[]){ Line 115  int main(int numinp, char *inps[]){
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);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23