|
From: sfeam <sf...@us...> - 2017-02-04 04:40:44
|
On Saturday, 04 February 2017 01:17:25 AM : pl...@pi... wrote:
> Hi,
>
> I am calling gnuplot as a child process and need to conditionally return
> a non zero error code in some circumstances. From a quick search it
> seems that this is not possible, It always returns zero: yet that seems
> a little surprising.
>
> perl -e 'system("gnuplot -e \"exit 1;\""); print "$?\n"'
>
> The only way I can get a non zero result is if there is a parsing error
> in the gnuplot commands.
>
> I am using gnuplot to display real time data on a server and it would be
> good to be able to do some basic error trapping, not least for
> debugging. Is there a way to do this?
Correct. There is no way to control the gnuplot exit value.
|