I have been creating a quick bash script that will generate some resource numbers and display them via gnuplot. I ran into an issue the second I changed the filenames in the gnuplot command to reflect a variable my script sets up for file location. Example code is below. Any idea why I am having this issue? I am guessing that gnuplot is not expanding my variable I setup, I just cannot figure out what I need to change. Thank you.
testFile=/var/log/testing.log
testFileTwo=/var/log/testingTwo.log
gnuplot -persist -e 'set xlabel "TIME"; set ylabel "PERCENT" ; set yrange [0:100]' -e 'plot ${testFile} smooth bezier, ${testFileTwo} smooth bezier'
As soon as I run this script, I receive the following error.
plot ${testFile} smooth bezeri, ${testFileTwo} smooth bezier
^
line 0: invalid complex constant