//#include #include //#include //#include int main(int argc, char **argv) { // TROOT root("stress","The Root test program"); // TApplication theApp("App", &argc, argv); char *cmd = "uname -a"; const int bs = 130; char buf[bs]; FILE *ptr; if ((ptr = popen(cmd, "r")) != NULL){ if (fgets(buf,60,ptr)) { buf[59] = '\0'; printf("* %s\n",buf); } else { printf("fgets returned NULL\n"); } } } /* g++ -I$ROOTSYS/include poproot2.cxx `root-config --libs` */