Diff for /imach/src/imach.c between versions 1.151 and 1.152

version 1.151, 2014/06/18 16:43:30 version 1.152, 2014/06/18 17:54:09
Line 1 Line 1
 /* $Id$  /* $Id$
   $State$    $State$
   $Log$    $Log$
     Revision 1.152  2014/06/18 17:54:09  brouard
     Summary: open browser, use gnuplot on same dir than imach if not found in the path
   
   Revision 1.151  2014/06/18 16:43:30  brouard    Revision 1.151  2014/06/18 16:43:30  brouard
   *** empty log message ***    *** empty log message ***
   
Line 6672  Interval (in months) between two waves: Line 6675  Interval (in months) between two waves:
   if((outcmd=system(plotcmd)) != 0){    if((outcmd=system(plotcmd)) != 0){
     printf("\n Problem with gnuplot command %s\n", plotcmd);      printf("\n Problem with gnuplot command %s\n", plotcmd);
     printf("\n Trying on same directory\n");      printf("\n Trying on same directory\n");
     sprintf(plotcmd,"./gnuplot %s", optionfilegnuplot);      sprintf(plotcmd,"%sgnuplot %s", pathimach, optionfilegnuplot);
     if((outcmd=system(plotcmd)) != 0)      if((outcmd=system(plotcmd)) != 0)
       printf("\n Still a problem with gnuplot command %s\n", plotcmd);        printf("\n Still a problem with gnuplot command %s\n", plotcmd);
   }    }
Line 6683  Interval (in months) between two waves: Line 6686  Interval (in months) between two waves:
     scanf("%s",z);      scanf("%s",z);
 /*     if (z[0] == 'c') system("./imach"); */  /*     if (z[0] == 'c') system("./imach"); */
     if (z[0] == 'e') {      if (z[0] == 'e') {
       printf("Starting browser with: %s",optionfilehtm);fflush(stdout);  #ifdef OSX
       system(optionfilehtm);        sprintf(pplotcmd, "open %s", optionfilehtm);
   #elsedef
         sprintf(pplotcmd, "%s", optionfilehtm);
   #enddef
         printf("Starting browser with: %s",plotcmd);fflush(stdout);
         system(plotcmd);
     }      }
     else if (z[0] == 'g') system(plotcmd);      else if (z[0] == 'g') system(plotcmd);
     else if (z[0] == 'q') exit(0);      else if (z[0] == 'q') exit(0);

Removed from v.1.151  
changed lines
  Added in v.1.152


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>