Simon, yes, such check works fine. Thanks! regards, martin
2011/6/21 Simon Hobson <[email protected]>: > Martin T wrote: > >>sorry about late reply. So basically I guess something like this should work: >> >> >><<<<< >>#!/bin/bash >> >>#executes hddtemp and prints only the temperature number without units >>temp=$(hddtemp -n /dev/sda) >> >>#in case $temp string is empty, a "U" value is put to the database >>if [ -n "$temp" ] >>then >>rrdtool update /home/martin/hdd.rrd N:$temp >>else >>rrdtool update /home/martin/hdd.rrd N:U >>fi >> >>>>>>> >> >>Am I correct? > > Yes. Does it work ? > > -- > Simon Hobson > > Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed > author Gladys Hobson. Novels - poetry - short stories - ideal as > Christmas stocking fillers. Some available as e-books. > > _______________________________________________ > rrd-users mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users > _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
