[comp.sources.d] Gnuplot2 hangs

domen@wiener.crin.fr (Eric Domenjoud) (11/08/90)

I am using  gnuplot 2.0 on  a  sun3 workstation  under suntools.  When
launched from sh, it works fine but does not exit at the end. The only
way to stop it is to kull  the  process. I actually  call it from a sh
script but the same problem occurs with an interactive sh. So  what is
the problem?

By the way, I tried to  send a mail  to pixar!info-gnuplot@sun.com but
this user is unknown. What is the right address.

Eric Domenjoud

domen@wiener.crin.fr (Eric Domenjoud) (11/09/90)

Hello Dave. I got your mail but the MAILER-DAEMON was unable to
retrieve your address.

You write:

> It should exit if you start it with a filename to read, eg
>     gnuplot foobar

That's what I do. Gnuplot is called from the following sh script which
is itself called from an interactive tcsh:

#! /bin/sh

	[stuff deleted]

NP=`cat fractal.dat | wc -l`
NP=`expr $NP '*' 10`

cat > fractal.plot <<EOF
set samples $NP
set nokey
set noxtics
set noytics
set size 0.95,1
plot "fractal.dat" w l 1
pause -1 "Hit return"
EOF

gnuplot fractal.plot
exit 0

It works fine until the pause and then hangs.

> but it will not stop if you use it interactively, until you type 'exit'
>  or 'quit' or ^D. If you are feeding it a file, try adding an 'exit' command
> to the end.

I also tried this solution but it doesn't help.
>
> dave

Eric Domenjoud