|
From: <pl...@pi...> - 2017-02-04 01:54:08
|
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?
Thanks, Peter.
|