#!/bin/bash source ./commun.sh rrdtool fetch $RRDB LAST | tr -d ':' | awk ' (!/nan/ && NF==2) { print $1, $2 } ' \ > toto gnuplot << __EOC__ set term png size 800,600 set output "graphe.png" plot "toto" with lines __EOC__ rm toto