]> henry.ined.fr Git - .git/commitdiff
Summary: If gnuplot is not in the path try on same directory than imach binary (OSX)
authorN. Brouard <brouard@ined.fr>
Wed, 18 Jun 2014 16:42:35 +0000 (16:42 +0000)
committerN. Brouard <brouard@ined.fr>
Wed, 18 Jun 2014 16:42:35 +0000 (16:42 +0000)
Author: brouard

src/imach.c

index d5fcfc2c61966ab448a9d4b4304edde332d276b3..9f278973bbc023ddcc7c3ff931321d38bed8720b 100644 (file)
@@ -1,6 +1,10 @@
 /* $Id$
   $State$
   $Log$
+  Revision 1.149  2014/06/18 15:51:14  brouard
+  Summary: Some fixes in parameter files errors
+  Author: Nicolas Brouard
+
   Revision 1.148  2014/06/17 17:38:48  brouard
   Summary: Nothing new
   Author: Brouard
@@ -6659,7 +6663,11 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf<br>\n",\
   printf("Starting graphs with: %s\n",plotcmd);fflush(stdout);
 
   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,"./gnuplot %s", optionfilegnuplot);
+    if((outcmd=system(plotcmd)) != 0)
+      printf("\n Still a problem with gnuplot command %s\n", plotcmd);
   }
   printf(" Wait...");
   while (z[0] != 'q') {