I'm running apache2 web server on raspberry pi3 model B. I'm setting up smart home running with Pi's and Uno's. I have a php scrypt that executes python program>index.php. It has rwxrwxrwx >I'll change that late becouse i don't fully need it.
And i want to real-time display print from python script.
exec('sudo python3 piUno.py') Let's say that output is "Hello w"
How can i import/get printed data from .py?
reloadthe module so it runs again?