http://h34nug3iwqjf2376fmmzdhgqivckzemcujmarlptfqeqtq7vya47yyad.onion/2007/02/25/gnuplot-a-command-line-driven-interactive-plotting-program/index.html
If we are happy with the output, we can save it to a “png”-file by changing the terminal gnuplot> set terminal png and defining an output-filename: gnuplot> set output “stats.png” Okay, this all seems still pretty manual, but here is how we can automatically generate the png-file in some bash script, too: #!/bin/bash
#... generate data.txt with sar, head and tail.
OUTFILE="stat.png"
gnuplot <<END
set terminal png
set output "$OUTFILE"
set xdata time
set timefmt...