>>603
何を困っているのか理解せずに投下

#!/bin/sh
cat <<EOF > tmp1
plot sin(x)
pause -1
EOF
gnuplot tmp1
rm tmp1

普通にpause -1は効いているようだけど。