|
From: Daniel J S. <dan...@ie...> - 2015-02-09 06:50:38
|
On 02/09/2015 12:07 AM, Philipp K. Janert wrote: > > No, it doesn't work for me. > > Here is the contents of my test script: > > set t pngcairo > plot sin(x) > > I invoke it like this: > > cat script.gp | gnuplot> graph.png > > When I use gnuplot 4.6 patchlevel 3 (which comes > with my distro), all is well. But when I use version > 5, nothing happens - I simply get dropped into an > interactive session. > > Mind you, batch processing works with version 5: > > gnuplot5 script.gp> graph.png > > is fine. Version 5.1 patchlevel 0 works on your test script. What are you seeing when the shell goes into interactive session? If I run gnuplot > graph.png as if the two sides of the command were treated normally (i.e., not one piped into another), the interactive part doesn't work because the visual output is sent to graph.png. How about something in your autoload .gnuplot file that might be causing problems. (Although I can't imagine what that might be.) Dan |