I have a python script myscript.py on a RaspberryPi with Raspbian that starts on boot via rc.local file. Since it has infinite loop in it I need to run it in background. So far so good but I also want to log this script's stdout to file with a pipe but can't get it working. My rc.local file looks like this:
/usr/bin/python3 /home/pi/myscript.py >> /var/www/html/log.log &
My log.log file has 666 permission so my script should be able to write to it right? Yet it does not.