I am trying to bring up a cron job that executes a python script every 5 minutes looking like this:
echo '2-57/5 * * * * $HOME/raspberry_pi/temp_test.py >> $HOME/raspberry_pi/temp_test.log 2>&1' | crontab -
Looking into the generated logfile I am getting this error:
Traceback (most recent call last): File "/home/pi/raspberry_pi/temp_test.py", line 204, in create_graph(temperature, rrd_db) File "/home/pi/raspberry_pi/temp_test.py", line 156, in create_graph 'GPRINT:temp0:LAST:Letzter Messwert: %2.1lf °C') rrdtool.error: opening 'db_test_temp.rrd': No such file or directory
my rrd-database and the python-script that should be executed are in the same directory and I already set the rights of the rrd-file to 777.
I tried out many things while digging in the www ( generating a local cmd-file in the root directory to execute the job, even setting a "cd" in front of the path) but nothing worked. Maybe it's completely obvious and I'm not seeing through because I'm a complete newbie but I would really appreciate any advice.
Thank u very much