Calling a endless Python script from PHP
问题 I have a PHP script that calls a python script. Both running on the same Linux server. The Python script is running in a "while true" loop. Now when I start the PHP script, it remains in an endless loop and never ends. If i delete the loop in Python, PHP is running normaly. PHP: <html> <head> <title>PHP</title> </head> <body> <?php shell_exec('sudo python /home/pi/blink.py 1); ?> </body> </html> Python: #!/usr/bin/env python import RPi.GPIO as GPIO import time import sys GPIO.setmode(GPIO.BCM