I made a script that sends my local sensors temperature to a server in the internet and then I can see a graph of it. Everything works fine when I execute it manully. I have the latest ubuntu version. When it comes to run periodically every minute with crontab then nothing works. It doesnt send anything. I tried to run it as SUDO and as user, I tried to add it in the crontab file to run it from several locations like /bin/myscript.sh , /user/Desktop and many others...Nothing seems to work. Any Idea how to solve it? Thank you!
echo Init ... TEMP=`/usr/bin/snmpwalk -v 1 -c public 192.168.1.2 iso.220.127.116.11.1.38718.104.22.168 | cut -d" " -f4` echo $TEMP REALTEMP=`echo "scale=1; $TEMP/10" | bc -l` echo $REALTEMP echo wget "http://api.thingspeak.com/update?key=MYKEY=$REALTEMP"