On Mon, Sep 11, 2006 at 11:30:59AM -0400, juan luis montoya rivadineira wrote: Hi Juan. > Hello list's friends: > I'm working with RRDTool two weeks ago. I'm trying to graphics about the > #!/bin/bash > > d=`snmpget -v2c -OQv -c sofasp 200.87.13.1 .1.3.6.1.4.1.9.9.109.1.1.1.1.3.1` > > a=`perl -e 'print time, "\n" '` > > /usr/bin/rrdtool update prueba0.rrd $a:$d >/dev/null > > When I run it in the command line (with sh prueba0.sh), it work fine, but > with the crontab, the Data Base is not updated well. I put this line. > > */5 * * * * /bin/sh > /srv/www/htdocs/pruebas/prueba0.sh >/dev/null 2>&1 At first use the absolute path to prueba0.rrd. Cron starts in the $HOME directory of the user which runs the cronjob, so it may be possible that it wont find the rrd-file if you don't use a absolute path. Second ... If it don't work _please_ remove the redirection of stdin and stderr to /dev/null ("... >/dev/null 2>&1"). You will miss any error message from the cronjob. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 mail: a.maus@science-computing.de 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi