--- imach/src/imach.c 2014/06/18 15:51:14 1.149 +++ imach/src/imach.c 2014/06/18 16:42:35 1.150 @@ -1,6 +1,10 @@ -/* $Id: imach.c,v 1.149 2014/06/18 15:51:14 brouard Exp $ +/* $Id: imach.c,v 1.150 2014/06/18 16:42:35 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + 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 Summary: Some fixes in parameter files errors Author: Nicolas Brouard @@ -496,11 +500,11 @@ extern int errno; #define ODIRSEPARATOR '/' #endif -/* $Id: imach.c,v 1.149 2014/06/18 15:51:14 brouard Exp $ */ +/* $Id: imach.c,v 1.150 2014/06/18 16:42:35 brouard Exp $ */ /* $State: Exp $ */ char version[]="Imach version 0.98nT, January 2014,INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121)"; -char fullversion[]="$Revision: 1.149 $ $Date: 2014/06/18 15:51:14 $"; +char fullversion[]="$Revision: 1.150 $ $Date: 2014/06/18 16:42:35 $"; char strstart[80]; char optionfilext[10], optionfilefiname[FILENAMELENGTH]; int erreur=0, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ @@ -6663,7 +6667,11 @@ Interval (in months) between two waves: 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') {