From: N. Brouard Date: Wed, 18 Jun 2014 16:42:35 +0000 (+0000) Subject: Summary: If gnuplot is not in the path try on same directory than imach binary (OSX) X-Git-Tag: imach-099s7~436 X-Git-Url: https://henry.ined.fr/git/?a=commitdiff_plain;h=dbbebf0c03a353f250c8a0380fca673b83be206a;p=.git Summary: If gnuplot is not in the path try on same directory than imach binary (OSX) Author: brouard --- diff --git a/src/imach.c b/src/imach.c index d5fcfc2..9f27897 100644 --- a/src/imach.c +++ b/src/imach.c @@ -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
\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') {