|
From: Daniel J S. <dan...@ie...> - 2007-03-09 03:20:15
|
Ethan A Merritt wrote: > On Thursday 08 March 2007 18:27, Allin Cottrell wrote: > >>echo "set term png" | `which gnuplot` 2>/dev/null && \ >>gnuplot_png=yes >> >>This has worked with versions of gnuplot up to 4.0. I have just >>updated to version 4.2.0 and it now fails, if the command is not >>run with the X11 display set. > > > I can't reproduce this. > > bash-3.1$ unset DISPLAY > bash-3.1$ echo "set term png" | gnuplot_4.2 2>/dev/null && png42=yes > bash-3.1$ echo $png42 > yes > > >>With previous gnuplot versions it was not necessary that the >>DISPLAY variable be set to something valid for X11. > > > Let's try to pin down exactly what causes the failure. I'll make a guess, based upon this comment: > Yes. It would be sufficient to pass in GNUTERM=png > (or GNUTERM=<anything but x11> for that matter). Recall there was a bit of a discussion about the x11 terminal looking for the location of gnuplot_x11 at start up, i.e., part of x11's initialization but since x11 is the default terminal, ostensibly at start up. If the x11 terminal cannot find gnuplot_x11, gnuplot exits. Dan |