I'd like to redirect gnuplot error messages (that are normally displayed in the gnuplot terminal) to a file for logging. Is there any way to do this?
Example: if I type
gnuplot> Hi!
in the gnuplot terminal, Then I get
gnuplot> Hi!
^
invalid command
gnuplot>
Is there any way to redirect "^\ninvalid command" into another file, e.g. err.txt?
Context: I'm using gnuplot embedded in a c++ application using gnuplot-iostream by Dan Stahlke. It works great! But I have no idea how to get error messages from this pipe, so this would be a good work-around.