|
From: <dbu...@ec...> - 2004-04-12 21:57:09
|
Hi,
I am Daniel Burbano, and have the following problem:
I am making a bash program which calls gnuplot to plot diferent data files
I want to call gnuplot many times from different options by different
ways, but I put EOF, or when I use the EOF inside a if, the program get an
error, the error appear in the line 72 (the last line), but there is
nothing there.
What is the problem?
line 72: syntax error: unexpected end of file
This is the program:
if [ $op -eq "1" ]; then
gnuplot -persist << EOF
plot " many files" using 1:2 with linespoints
pause -1
EOF
fi
if [ $op -eq "2" ]; then
bash stuffs ....
gnuplot -persist << EOF
gnuplot stuffs ....
set terminal x11
plot "<more $PATH_FILES$PREFIX*" using $3:($4/$3) with linespoints
pause -1
EOF
fi
|