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

version 1.149, 2014/06/18 15:51:14 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
     *** empty log message ***
   
     Revision 1.150  2014/06/18 16:42:35  brouard
     Summary: If gnuplot is not in the path try on same directory than imach binary (OSX)
     Author: brouard
   
   Revision 1.149  2014/06/18 15:51:14  brouard    Revision 1.149  2014/06/18 15:51:14  brouard
   Summary: Some fixes in parameter files errors    Summary: Some fixes in parameter files errors
   Author: Nicolas Brouard    Author: Nicolas Brouard
Line 6663  Interval (in months) between two waves: Line 6673  Interval (in months) between two waves:
   printf("Starting graphs with: %s\n",plotcmd);fflush(stdout);    printf("Starting graphs with: %s\n",plotcmd);fflush(stdout);
   
   if((outcmd=system(plotcmd)) != 0){    if((outcmd=system(plotcmd)) != 0){
     printf("\n Problem with gnuplot\n");      printf("\n Problem with gnuplot command %s\n", plotcmd);
       printf("\n Trying on same directory\n");
       sprintf(plotcmd,"%sgnuplot %s", pathimach, optionfilegnuplot);
       if((outcmd=system(plotcmd)) != 0)
         printf("\n Still a problem with gnuplot command %s\n", plotcmd);
   }    }
   printf(" Wait...");    printf(" Wait...");
   while (z[0] != 'q') {    while (z[0] != 'q') {
Line 6672  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.149  
changed lines
  Added in v.1.152


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