Open ThomasGmeinder opened 7 years ago
Hi Thomas, Is it something to do with building under OS X ? If so, /dev/nul should be /dev/null. You could try modifying : https://github.com/johned0/gnuplot_c/blob/master/src/gnuplot_c.c#L32 To the following :
#if ((__unix) || (__MACH__)) // Linux / OS X
#define GNUPLOT_CMD "gnuplot > /dev/null 2>&1" // Pipe the text output to null for higher performance
#else
#define GNUPLOT_CMD "gnuplot > /dev/nul 2>&1" // Pipe the text output to null for higher performance
#endif
Let me know how you get on. I've note tested this, it is just a hypothesis at the moment. Cheers, John
Thanks John I implemented a fix based on your suggestion on my fork and made this pull request #https://github.com/xmos/gnuplot_c/pull/1 Cheers, /T
When I build my host application with this version of gnuplot_c I get: sh: /dev/nul: Permission denied
When I build with another version of this library (gnuplot_xscope) then I don't get this error.
This is the host application: https://github.com/xmos/lib_radar/tree/master/examples/app_radar/host
The Error can be reproduced simply by building and running the radar_visualisation app. It will print ./radar_visualisation ERROR: socket connect3, ipaddress: localhost, port: 10234 started localhost:10234 sh: /dev/nul: Permission denied sh: /dev/nul: Permission denied sh: /dev/nul: Permission denied