I learning rddtools and done simple shell script, it works fine when i runn it form shell but when i put it to runn as cron job it want put data in db :(
here is the script: #! /bin/sh #---------------------------------------------# TIMESTAMP=`date +%s`; ZACIATOK=$(($TIMESTAMP-10)); KONIEC=$(($TIMESTAMP+86400)); DATABAZA=/home/test.rrd OBRAZOK=/home/test.png #---------------------------------------------# if [ ! -s $DATABAZA ] ; then rrdtool create --step 60 $DATABAZA DS:teplota:GAUGE:600:0:150 RRA:AVERAGE:0.5:1:60 fi t=`sensors |grep Temp1 | cut -d"+" -f2|cut -d"." -f1` rrdtool update test.rrd $TIMESTAMP:$t rrdtool graph $OBRAZOK -a PNG --title="Teplora (Denne, v 5 Minutovom priemer)" -v "Teplota (Stupne Celsia)" --width=600 --height=300 --upper-limit=150 --low$ echo $TIMESTAMP:$t i cant get it to work in cron :( please help.... -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
